plodos Posted June 23, 2008 Share Posted June 23, 2008 $to = $_REQUEST["email"]; $title = $_REQUEST["title"]; $from= "info@xxx.com"; $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(josh@asd.com) and $from(nfo@xxx.com) Problem is that......when I send the email josh@asd.com also script is automaticaly sending the email to me info@xxx.com..!!!! I dont want to take a copy of this email in this email box info@xxx.com..but sender must see the From: part....what must I do....??? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.