0

my problem is when i compose an email in html i get mail@127.0.0.1 as a sender. if i take off the HTML format then everything is ok.
Here is the headers:

$headers = " From: mywebsite.ca" . "\n" . "Replay-To: Do Not Replay". "\n" . "X-Mailer: PHP/" . phpversion();
$headers .= "Content-type: text/html; charset=iso-8859-1";

If you know whats wrong with my headers please let me know

Thank you

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by oree
0

Replace "Replay" by "Reply". Replace "\n" by "\r\n". Add a "\r\n" to the first header to separate it from the second.

$headers = "From: mywebsite.ca\r\nReply-To: Do Not Reply\r\nX-Mailer: PHP/" . phpversion();
$headers .= "\r\nContent-type: text/html; charset=iso-8859-1";

Then try again.

Edited by smantscheff: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.