473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Aug 29 '08 #1
3 1555
Dormilich
8,658 Expert Mod 8TB
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
nomad
664 Expert 512MB
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
Aug 29 '08 #3
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.
Aug 30 '08 #4

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

Similar topics

1
by: Paulo Almeida | last post by:
Hi, I´m trying VP ASP Shopping cart, but the free version doesn´t allow us to send an email to our customers and to ourselves with the confirmation of the order. I would like to know if there...
13
by: Manfred Braun | last post by:
Hi All, I am trying to understand the blocking method socket.Send(). The call blocks as expected, but does this mean, it returnes after the underlying TCP layer got a confirmation, that the send...
4
by: blu3g85 | last post by:
how to use asp.net page to send an email? ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World!...
3
by: chuckdfoster | last post by:
When using this bit of code, it sends two emails most of the time. Sometimes it doesn't send two, but most of the time it does. I put the system time (Now) in the Subject and each email has a...
4
by: herbert | last post by:
sendmail in .NET 2.0 is as useless as it was in .NET 1.x I can't find out how to make it work. Not to mention how to write a setup project that tests/installs its requirements correctly. the...
10
by: Logipro | last post by:
Hi, Can it's possible to send a local Web page (HTML) (with pictures) by Outlook, OE, MAPI or Jmail, simply by pass a Html path files ? I try many many tips like replace "cid:" before image in...
4
by: gurufordy | last post by:
Hello. Trying to use the ASP.net user functionality but it keeps failing on me. I have created a login and registration page for my site. When you fill in the registration form it should send a...
2
by: Marise | last post by:
Hello, I developed a PHP to send confirmation mail to my users. The users complainthat the mail goes to the SPAM section each time. What is the reason for this? I tested it several times, and I...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.