You can use the following code saved into a file with a .php extension to test PHP mail functionality:
<?
$headers = 'From: webmaster@example.com';
mail('nobody@example.com', 'Test email using PHP', 'This is a test email...
You can test PHP SMTP functions with the following two examples. The first one is standard SMTP while the second one is SMTP with SSL.
We strongly recommend using an SMTP relay that requires authentication. Sending mail through...