Advertisement
Guest User

Untitled

a guest
Apr 15th, 2019
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2.  
  3. $to = 'woojciechczop@gmail.com';
  4. $subject = 'Test of the script';
  5. $message = 'This is test of the script with imploded headers';
  6.  
  7. $headers   = array();
  8. $headers[] = "MIME-Version: 1.0";
  9. $headers[] = "Content-type: text/plain; charset=iso-8859-1";
  10. $headers[] = "From: Wojciech Czop <robo6666666@gmail.com>";
  11. $headers[] = "Bcc: Wojtek <robo0@onet.eu>";
  12. $headers[] = "Reply-To: Wojciech Czop <robo6666666@gmail.com>";
  13. $headers[] = "Subject: {$subject}";
  14. $headers[] = "X-Mailer: PHP/".phpversion();
  15.  
  16. mail($to, $subject, $message, implode("\r\n", $headers));
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement