Skip to content

Instantly share code, notes, and snippets.

@dwdraju
Created August 1, 2018 06:19
Show Gist options
  • Save dwdraju/463f95f22585a7e4b96e8711bf93c208 to your computer and use it in GitHub Desktop.
Save dwdraju/463f95f22585a7e4b96e8711bf93c208 to your computer and use it in GitHub Desktop.
mail test smtp
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "[email protected]";
$to = "[email protected]";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment