<?php
// multiple recipients
//$to = 'ambiorixg12@gmail.com' . ', '; // note the comma
//$to .= 'wez@example.com';
$to="ambiorixg12@gmail.com";
// subject
$subject = 'Birthday Reminders for August';
// message
$message = "
<html>
<head>
<title>Title Birthday Reminders for August</title>
</head>
<body>
<img src=https://scontent-lga1-1.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/12032037_10153534098456900_5771057074383252436_n.jpg?oh=50093ee991e5ef9b26160ab0755735ae&oe=56656F4E>
<p>Here are the birthdays upcoming in August!</p>
</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: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";
*/
// Mail it
mail($to, $subject, $message, $headers);
?>
No hay comentarios:
Publicar un comentario