An unsubscribe button is a link that carries some information about who the email was sent to. You then log that in a list in a file or a database.
You then exclude that list from subsequent mailings
You need to be able to make a link like:
http://www.mysite.com/unsubscribe.ph...dy@hotmail.com
the 'somebody@hotmail.com' can be created when you merge the email list with your message
unsubscribe.php is the script that takes that email and adds it to a list.
There's a bit about how to write to a basic text file here. All you need now is to get the value of 'email' and write that out.
Clear as mud?
The other way is to link to a form on your site, so no need to merge anything in the email. get the user to enter their email address and have that email removed or flagged as unmailable in your database.
Your best bet is to use a commercial email service like Constant Contact or Aweber that will do it all for you.
Good luck!
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks