plodos Posted June 23, 2008 Share Posted June 23, 2008 $to = $_REQUEST["email"]; $title = $_REQUEST["title"]; $from= "[email protected]"; $content = "Advertisement"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "To: $to\r\n"; $headers .= "From: $from\r\n"; mail($to,$subject,$content,$headers); script is getting the receiver email ($to) and inside of the headers $to([email protected]) and $from([email protected]) Problem is that......when I send the email [email protected] also script is automaticaly sending the email to me [email protected]..!!!! I dont want to take a copy of this email in this email box [email protected] sender must see the From: part....what must I do....??? Link to comment https://forums.phpfreaks.com/topic/111529-php-mail-and-headers-problem/ Share on other sites More sharing options...
dannyb785 Posted June 23, 2008 Share Posted June 23, 2008 I'm not sure if it matters, but have the "From: whatever" at the beginning of the $headers variable instead of the end. See if that works Link to comment https://forums.phpfreaks.com/topic/111529-php-mail-and-headers-problem/#findComment-572404 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.