Hi, I am trying to send an email via PHP.
I have a form which sends to:
<?php
$to = "$form_to_name <$form_to_email>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $form_sender_name <$form_sender_email>\r\n";
mail($to, $form_subject, $form_message, $headers);
?>
But.. it only half works. This has been copied and pasted from the email recieved:
Content-type: text/html; charset=iso-8859-1
From: me <me@me.com>
This is a test, I hope it works
why doesn't it accept the headers?