\n"; $emailPattern = "^[A-Z0-9._-]+@[A-Z0-9._-]+\.[A-Z]{2,4}$"; if ($email != "" AND !eregi($emailPattern, $email)) $errors .= "The email address entered does not to be a valid address for testing.
\n"; if ($errors == "") { $subject = "PHP Email Test"; $message = "If you receive this email, your server has successfully sent an email using PHP.\n"; @$mailStatus = mail($email, $subject, $message); if (!$mailStatus) $errors .= "Server error - PHP has not been configured to send out emails yet, sorry.
\n"; } } ?> Test PHP Email Configuration

Test PHP Email

To test your server's PHP email configuration, enter your valid
email address below and hit the "test now" button.


your email address:  
ERROR:
$errors

 
"); } else { print("
Success!
Email message has been sent.
If you do not receive your email, try a different address.
If still no luck, your server's outgoing email may not be working right.
 
"); } } ?>
 
 
 www.mindpalette.com
 
1