Jump to content

PHP email headers


DasHaas

Recommended Posts

I cant get the From email address to pass through to the email recipients. The emails keep showing my domain as the sender. Any help on this would be greatly appreciated.

 


$headers .="From: [email protected]\n";
$headers .="Reply-To: [email protected]\n"; 
mail($email, $msgsubject, $msgbody, $headers);

As mentioned above the recipients see myserver.cm as the sender, I would like to change that to [email protected] or better yet my name.

Link to comment
https://forums.phpfreaks.com/topic/53434-php-email-headers/
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.