Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $to = 'woojciechczop@gmail.com';
- $subject = 'Test of the script';
- $message = 'This is test of the script with imploded headers';
- $headers = array();
- $headers[] = "MIME-Version: 1.0";
- $headers[] = "Content-type: text/plain; charset=iso-8859-1";
- $headers[] = "From: Wojciech Czop <robo6666666@gmail.com>";
- $headers[] = "Bcc: Wojtek <robo0@onet.eu>";
- $headers[] = "Reply-To: Wojciech Czop <robo6666666@gmail.com>";
- $headers[] = "Subject: {$subject}";
- $headers[] = "X-Mailer: PHP/".phpversion();
- mail($to, $subject, $message, implode("\r\n", $headers));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement