Skip to content

Instantly share code, notes, and snippets.

@usmanbashir
Created July 28, 2009 08:07
Show Gist options
  • Save usmanbashir/157006 to your computer and use it in GitHub Desktop.
Save usmanbashir/157006 to your computer and use it in GitHub Desktop.
<?php
$sMailTo = "[email protected]";
$sMailSubject = "New Message";
$sMailMessage = "Your message!";
if ( mail($sMailTo, $sMailSubject, $sMailMessage, "From: [email protected]") ) {
echo "Thank you for your feedback.";
} else {
echo "Sorry, but there was a problem please try again later.";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment