February 11, 200817 yr 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
Create an account or sign in to comment