The following header informations I have added to send a html content as a mail message.
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'Content-type: multypart/mixed; boundary=\'PHP-mixed'."\r\n";
$headers .= "Content-Transfer-Encoding: 8bit"."\r\n";
$headers .= "Content-Type: application/pdf; name=/home/sugumar/LOGO2.jpg"."\r\n";
mail($to, $subject, $message, $headers);
In the HTML body tag has image tag. but in mail the image is not shown. how to send the image with mail. I don't want as a attachment. its like a inline content.
multipart
... The standard answer to this would be use a ready-made mailing class like Swiftmailer. – Pekka