Advertisement
Guest User

Untitled

a guest
Apr 15th, 2019
470
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. $subject = 'Test of the script';
  4. $message = 'This is test of the script with imploded headers';
  5.  
  6. $headers   = array();
  7. $headers[] = "MIME-Version: 1.0";
  8. $headers[] = "Content-type: text/plain; charset=iso-8859-1";
  9. $headers[] = "From: Wojciech Czop <[email protected]>";
  10. $headers[] = "Bcc: Wojtek <[email protected]>";
  11. $headers[] = "Reply-To: Wojciech Czop <[email protected]>";
  12. $headers[] = "Subject: {$subject}";
  13. $headers[] = "X-Mailer: PHP/".phpversion();
  14.  
  15. mail($to, $subject, $message, implode("\r\n", $headers));
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement