1<?php
2 ini_set( 'display_errors', 1 );
3 error_reporting( E_ALL );
4 $from = "emailtest@YOURDOMAIN";
5 $to = "YOUREMAILADDRESS";
6 $subject = "PHP Mail Test script";
7 $message = "This is a test to check the PHP Mail functionality";
8 $headers = "From:" . $from;
9 mail($to,$subject,$message, $headers);
10 echo "Test email sent";
11?>