Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 29th, 2008, 01:51 AM
Newbie
 
Join Date: Aug 2008
Posts: 22
Default How can I send confirmation mail.

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.

Thanks
Reply
  #2  
Old August 29th, 2008, 10:05 AM
Dormilich's Avatar
Expert
 
Join Date: Aug 2008
Location: Leipzig, Germany
Age: 31
Posts: 646
Default

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.
Reply
  #3  
Old August 29th, 2008, 03:04 PM
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 562
Default

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\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}[/PHP]

I hope that is what you're looking for
nomad
ps make sure you make a thankscontact.htm (or whatever you name it)file
Reply
  #4  
Old August 30th, 2008, 06:55 AM
Member
 
Join Date: Jun 2007
Posts: 43
Default

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='http://yoursite.com/authentication.php?userid=$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.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles