By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

How can I send confirmation mail.

P: 24
Hi guys

First of all thanks for helping me out with other posts. I have another problem here. I want to send confirmation link to emaill user has provided when they register to my website. How can I achieve this. Please help me.

Aug 29 '08 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 8,639
I'd say just paste the link in the message body, most email clients will render this to a link. Otherwise you could write a html mail (though not everybody accepts html mails or strips them down to text). use your favourit mailscript.
Aug 29 '08 #2

Expert 100+
P: 664
not to sure what you want but if you want the clients to know that you received their info then you could add a // redirect to success page
in your .php file

[PHP]// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");

// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=thankscontact.htm\">";
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";

I hope that is what you're looking for
ps make sure you make a thankscontact.htm (or whatever you name it)file
Aug 29 '08 #3

P: 49
Okay let i guess this is what you want....not sure but it might help you...

when user fills a registration form and hit submit button. You probably do insertion in DB, when you do insertion get the last inserted id. and store it in variable let say '$userid'. Make link in the email that you will send to the user and that link will contain that last inserted id e.g the link might look like this.

Expand|Select|Wrap|Line Numbers
  1. <a href='$userid'>Click Here</a>
Make sure to encrypt $userid before using it in the above link.

When user click on this link that link will bring user to authentication.php. Here first you will decrypt $userid and then find this ID in your DB. If you find a record set then user will be authenticated and you can set his/her status as verified user. and refdirect to THANK YOU page or Login page. what ever you want.

Hope this helps you.
Aug 30 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.