Forum Moderators: coopster
Normall the newsletters we receive have a link placed at the bottom saying "Click Here to unsubscribe". When we we click we taken to the senders website and appear "You have successfully unsubscribed." .
Now my question is how do we take the email address from the mail to the php script? .
Do i need to put a form or a php script in the mail?
pls...
<?php
// You've already pulled the details out of your database and started a while() loop to send each email
{
$mailbody = "Your text<br><br><a href='http://www.example.com/unsub.php?email=$row[email]'>Unsubscribe here</a>";
mail($row[email], "Subject", $mailbody, "From: You <you@example.com>");
}
?>
Hopefully that'll give you some idea of what to do. :)