Email Sending problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dumlee
Forum Commoner
Posts: 33
Joined: Mon Jun 30, 2008 12:06 am

Email Sending problem

Post 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.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Email Sending problem

Post 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.
WebbieDave
Forum Contributor
Posts: 213
Joined: Sun Jul 15, 2007 7:07 am

Re: Email Sending problem

Post by WebbieDave »

PHPMailer is quite popular and makes it easy to create multipart messages.
Post Reply