Guest User

Untitled

a guest
Oct 20th, 2017
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2. $to  = 'cesar@example.com'; // Email destination
  3. $subject = 'Asunto aquí';
  4.  
  5. $message = '
  6. <h1>Html Test</h1>
  7. <br>
  8. hola mundo
  9. ';
  10. $headers  = 'MIME-Version: 1.0' . "\r\n";
  11. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  12. $headers .= 'To: Cesar <cesar@example.com>, Kelly <kelly@example.com>' . "\r\n";
  13. $headers .= 'From: You <hack@example.com>' . "\r\n";
  14. //$headers .= 'Cc: cc@example.com' . "\r\n";
  15. //$headers .= 'Bcc: cc@example.com' . "\r\n";
  16. mail($to, $subject, $message, $headers);
  17. ?>
Add Comment
Please, Sign In to add comment