You also need to add the text/html header, such as:
$headers = "Content-Type: text/html \r\n";
mail("[EMAIL PROTECTED]", "subject",$out , "From: website", $headers);
jen
> I read from a template, insert data and save it as a new file with html
> code...
> i want to send that file that is the sa
$recipient = "Recipient <[EMAIL PROTECTED]>"
$headers .= "From: name <[EMAIL PROTECTED]>\n";
$headers .= "X-Sender: <[EMAIL PROTECTED]>\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$message = "This is HTML!!!See!!!";
2 matches
Mail list logo