Jump to content

php mail and headers problem???


plodos

Recommended Posts

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.