Page 1 of 1

php unsubscribe e-mail

Posted: Wed May 21, 2008 4:50 am
by lxm
Hi all,

I want to create an 'Unsubscribe' link in the e-mails I'm sending out. If the person receiving the e-mail no longer wants to receive e-mails from me, they click the 'Unsubscribe' link in the e-mail which will be something like this:

http://www.mysite.com/unsub.php?email=p ... otmail.com

So upon click this link they will be taken to a page that says, do you wish to stop receiving these e-mails - Yes / No?

When the user clicks 'Yes', I need to save the e-mail address from the link in a text file.

Could anyone tell me how to do this using php?

Thanks,

Laura

Re: php unsubscribe e-mail

Posted: Wed May 21, 2008 6:35 am
by mikelbring
Look into the functions: fopen and fwrite, you will be dealing with flat files.