php envio de mail

Solutions on MaxInterview for php envio de mail by the best coders in the world

showing results for - "php envio de mail"
Andrea
10 Nov 2016
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