Guest User

Untitled

a guest
Feb 9th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2. $subject = 'Testing sendmail.exe';
  3. $message = 'Hi, you just received an email using sendmail!';
  4. $headers = 'From: [your_gmail_account_username]@gmail.com' . "\r\n" .
  5. 'MIME-Version: 1.0' . "\r\n" .
  6. 'Content-type: text/html; charset=utf-8';
  7. if(mail($to, $subject, $message, $headers))
  8. echo "Email sent";
  9. else
  10. echo "Email sending failed";
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment