PHP Enviar correo HTML
stoy tratando de enviar un correo HTML a través de PHP, pero parece que no puedo hacerlo funcionar.
Este es mi código:
// multiple recipients
$to = 'mail';
// subject
$subject = 'Subject';
// message
$message = "
<html>
<head>
<title>Thanks</title>
</head>
<body>
<div>
<b>Thanks for your email</b>
</div>
</body>
</html>
";
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: info <[email protected]>' . "\r\n";
$headers .= 'From: Pynix <[email protected]>' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
Esto tampoco muestra ningún remitente cuando lo recibo en Outlook.
¿Alguien una idea?
Gracia