Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2. $headers = array();
  3. $headers[] = "MIME-Version: 1.0";
  4. $headers[] = "Content-type: text/plain; charset=iso-8859-1";
  5. $headers[] = "From: ManaPot <newsletter@manapot.com>";
  6. $headers[] = "Reply-To: ManaPot <newsletter@manapot.com>";
  7. $headers[] = "Subject: Welcome to ManaPot!";
  8. $headers[] = "X-Mailer: PHP/".phpversion();
  9. $headers[] = "Message-ID: <" . time() .'-' . md5('newsletter@manapot.com' . 'd3sanc@gmail.com') . '@' . $_SERVER['SERVER_NAME'] . '>';
  10. $headers[] = "Auto-Submitted: auto-generated";
  11. $headers[] = "Return-Path: <>";
  12.  
  13. mail('d3sanc@gmail.com', 'How is summer vacation?', 'Hi friend, how are you doing? My vacation was good. Are you having a good summer?', implode("\r\n", $headers));
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement