Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $to = '[email protected]';
- $subject = 'Testing sendmail.exe';
- $message = 'Hi, you just received an email using sendmail!';
- $headers = 'From: [your_gmail_account_username]@gmail.com' . "\r\n" .
- 'MIME-Version: 1.0' . "\r\n" .
- 'Content-type: text/html; charset=utf-8';
- if(mail($to, $subject, $message, $headers))
- echo "Email sent";
- else
- echo "Email sending failed";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment