Hallo allemaal
Ik probeer een goede email te sturen met HTML. Alles werkt, behalve komt de mail op mijn macbook aan als platte tekst, oftewel alle html tags.
Op de server (hotmail) en de telefoon werkt het prima, maar zowel op de Mail app van Apple als Thunderbird werkt het niet.
<?php
$to = $sendto;
$subject = 'Frustbuster Formulier';
$headers = "From: [email protected] \r\n";
$headers .= "Reply-To: [email protected] \r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
ob_start();
include('mail.inc.php');
$content = ob_get_contents();
ob_end_clean();
if(mail($to,$subject,$content,$headers)){
echo 'succes';
}
?>
In de mail.inc.php staat een doodnormale html pagina, zonder afbeeldingen. CSS intern, maar in de head geplaatst.
Weet iemand hoe dit komt?
1.512 views