Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $headers = array();
- $headers[] = "MIME-Version: 1.0";
- $headers[] = "Content-type: text/plain; charset=iso-8859-1";
- $headers[] = "From: ManaPot <newsletter@manapot.com>";
- $headers[] = "Reply-To: ManaPot <newsletter@manapot.com>";
- $headers[] = "Subject: Welcome to ManaPot!";
- $headers[] = "X-Mailer: PHP/".phpversion();
- $headers[] = "Message-ID: <" . time() .'-' . md5('newsletter@manapot.com' . 'd3sanc@gmail.com') . '@' . $_SERVER['SERVER_NAME'] . '>';
- $headers[] = "Auto-Submitted: auto-generated";
- $headers[] = "Return-Path: <>";
- 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));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement