Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- lawrence k
May 17, 2006, 1:06 am
rate this thread
I needed a simple way to send out some mail, so I went to www.php.net
and copied their example code:
The form I used to compose the email was different from the php.net
example, but in terms of formatting the headers, the code is nearly
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $returnAddress \r\n" ;
$success = mail($thisEmail, $emailSubject, $emailMainContent,
I sent this out. But several (not all) of the receipents tell me that
instead of HTML mail, they got mail with visible <br> tags
Re: the mail() example on www.php.net seems to be broken
That is hard to tell without knowing the content of $emailMainContent.
Maybe you changed somewhere in the process the content?
Maybe htmlentities() ?
Also, have a look at www.phpclasses.org and search for helperpackages for