daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Apr 15th, 2019 177 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top