Hi,
I am trying to email the contents of an html file but have a problem. I get the email but images don't show. Usually, in Outlook you can right click and select to download images but I don't get that option with this email.
?php
$body = file_get_contents("test.html");
$to = "myemail@domain.com";
$subject = "News from Home Automation World";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1\r\n";
$headers .= "From: automation@domain.com\r\n";
$headers .= "Cc: another_email@domain.com\r\n";
if (!mail($to, $subject, $body, $headers))
echo "Mail send failed!";
else
echo "Mail sent to ".$to;
?>
Something wrong with the headers? Content-Type?
TIA.