Page 1 of 1

Email Sending problem

Posted: Thu Jul 10, 2008 4:42 am
by dumlee
Please guide me in the code for

1.Send an email when one user registers on the site from registration page.

2.This email must contain a link which when clicked should contain:

userid in query string and should update confirm field in database to 1.

Re: Email Sending problem

Posted: Thu Jul 10, 2008 12:56 pm
by jaoudestudios
Here is a very good php mail class...easy to use too...
http://www.forum.jaoudestudios.com/view ... ?f=13&t=13

When embedding the link for the user to click to activate their account do not just have an id number as they could impersonate someone else. You will have to encrypt the id and decrypt it server side later on.

There is a good encryption function on that forum too, including the decrypt function.

Re: Email Sending problem

Posted: Thu Jul 10, 2008 1:18 pm
by WebbieDave
PHPMailer is quite popular and makes it easy to create multipart messages.