Code: Select all
<?php
$to = 'email@domain.com';
$subject = 'Website Change Reqest';
$headers = "From: noreply@domain.com";
$headers .= "Reply-To: noreply@domain.com";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = '<html><body>';
$message .= '<h1>Hello, World!</h1>';
$message .= '</body></html>';
mail($to, $subject, $message, $headers);
?>I want to be able to send out emails via the mail script, but in HTML.
Having read some scripts, it seems pretty straight forward, but the above produces nothing.
Have I missed something?
Do I need to enable something else on the server?
Hope someone can help point me in the right direction. Once I've got this cracked, email marketing will be alot easier!!
Simon