Posted by Zoe Brown on 10/13/59 11:29
Hello
How do i send a HTML email using PHP.
I have tried loads of examples and they are not working.
last example was
<?php
$to = blabla@bla.net;
$subject = 'Wakeup bob!';
$message = '<b>yo</b>, whassup?';
$headers = "From: server@barnyard.com\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
// Send
mail($to, $subject, $message, $headers);
?>
[Back to original message]
|