Skip to content

Instantly share code, notes, and snippets.

@chrisl8888
Created August 4, 2016 02:42
Show Gist options
  • Save chrisl8888/d66aa8012a2a5e16ac6af91df431f723 to your computer and use it in GitHub Desktop.
Save chrisl8888/d66aa8012a2a5e16ac6af91df431f723 to your computer and use it in GitHub Desktop.
Simple mail test script
<?php
$to = "[email protected]"; // REPLACE
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "[email protected]";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment