Skip to content

Instantly share code, notes, and snippets.

@fredbradley
Created August 13, 2012 20:04
Show Gist options
  • Save fredbradley/3343745 to your computer and use it in GitHub Desktop.
Save fredbradley/3343745 to your computer and use it in GitHub Desktop.
if ($_POST['email']) {
$email = $_POST['email'];
$message = "Hello this is a test! It worked!";
mail($email, 'My Subject', $message);
echo 'Mail Should Now Be Sent!';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment