php mailsender

A quick way to test mail sending via php:

 1<?php
 2 ini_set( 'display_errors', 1 );
 3 error_reporting( E_ALL );
 4 $from = "webmaster@example.com";
 5 $to = "me@example.com";
 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?>