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

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.

awesome thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.