1$to = "destinatario@email.com";
2$subject = "Asunto del email";
3$headers = "MIME-Version: 1.0" . "\r\n";
4$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
5
6$message = "
7<html>
8<head>
9<title>HTML</title>
10</head>
11<body>
12<h1>Esto es un H1</h1>
13<p>Esto es un párrafo en HTML</p>
14</body>
15</html>";
16
17mail($to, $subject, $message, $headers);
18