automatically recieve mail

Hi!

I want to make mobile phone registration system with e-mail
confirmation.
firstly, When user send the e-mail from the cell phone then user will
recieve an register url by e-mail.
It likes an error handling system, when error happen the system will
send the error message but it is a bit different I think.
how can i do it?
please give me a clue.