I am just learning php and found this solution online but it isn't working right for me. The email link in the body isn't sending the recipients email address, it is sending the example email address. I have changed the first example email address to my own. I know I should be replacing the second example email address with something else but not sure with what. I tried replacing
[email protected] with just "email" and $email but neither worked. The php page works fine with the exception of not emailing me with the email address that wants to unsubscribe. I don't have a mailing list this is just for my regular emails that I send out to conform with spam rules. Can someone help me out?
<a href="http://www.example.com/
[email protected]">Click to Unsubscribe</a>
<?php
mail("
[email protected]","unsubscribe", $_GET['email']);
echo "You have unsubscribed from Domain Name";
?>