brainonastick Posted February 11, 2008 Posted February 11, 2008 Hi there, Im trying to write a bit of code that sends an email from a newsletter back to me showing the recipient's email address. I don't know how to capture the senders email address. Ive tried 3 different ways of doing it: 1) <?php to = '[email protected]'; $subject = "Unsubscribe to ACWA Newsflash"; $msg = "Please remove this email address from the ACWA Newsflash email list.n"; mail($to, $subject, $msg ); ?> 2) <?php $mail=$_GET['mail']; $subject = "Unsubscribe"; $text = "The customer with the e-mail address".$mail." wants to UNSUBSCRIBE from the newsletter"; mail('[email protected]',$subject,$text,"From: $mail <$mail>"); ?> 3) This is just a link: mailto:[email protected]?subject=Unsubscribe to ACWA Newsflash But in none of the above am I capturing the sender's email address. All advice gratefully received. Cheers, Steven
Recommended Posts
This topic is 6199 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now