I am trying to send an HTML mail through PHP, but I can\'t seem to get it working.
This is my code:
// multiple recipients
$to = \'mail\';
Fixed.
I found this which for some reason worked perfectly on my server:
// Set The Headers:
$headers = 'From: "Me" '.PHP_EOL.
'Reply-to: '.PHP_EOL.
'Cc: '.PHP_EOL.
'MIME-Version: 1.0'.PHP_EOL.
'Content-type: text/html; charset=iso-8859-1'.PHP_EOL.
'Content-Transfer-Encoding: 8bit'.PHP_EOL.
'X-Mailer: PHP/'.PHP_VERSION.PHP_EOL;
// Send:
mail($to, $subject, $message, $headers);
Thanks for the input guys.