- mail: documentation ( source)
- ini_set: documentation ( source)
<?php
$to = "emerlor@gmail.com";
$subject = "Holanda...";
$message = "
<html>
<head>
<title>Prima cómo estás???</title>
</head>
<body>
<p>Oye cachai en qué malos pasos anda tu hermano?... bueno eso portate mal nos vemos.</p>
</body>
</html>
";
ini_set("sendmail_from", "Alejandro Gajardo <alesgare@gmail.com>");
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
// More headers
$headers .= 'From: Alejandro Gajardo <alesgare@gmail.com>' . "\r\n";
mail($to,$subject,$message,$headers);
?>