Jump to content

PHP Mail


jimleeder123

Recommended Posts

I'm still having trouble with the headers for PHP Mail. I can make the email work with just the HTML header and no "From" header. However if I have the "From" Header, the "from" address works, but then the HTML doesn't. Below is my code, does anyone know how to fix this please?

 

$headers = 'From: JMS <[email protected]>' . "\r\n";
$headers.= "Content-type: text/html; charset=iso-8859-1" . "\r\n";

 

mail($to,$subject,$message,$headers);
 

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