Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors', 1);
- error_reporting(E_ALL);
- $from = "from-email@mail.com";
- $to = "to-email@mail.com";
- $subject = "PHP Mail Test script";
- $message = "This is a test to check the PHP Mail functionality";
- $headers = "From:" . $from;
- mail($to, $subject, $message, $headers, $from);
- echo "Test email sent";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement