Skip to content

Instantly share code, notes, and snippets.

@colmdoyle
Created February 4, 2011 17:00
Show Gist options
  • Save colmdoyle/811368 to your computer and use it in GitHub Desktop.
Save colmdoyle/811368 to your computer and use it in GitHub Desktop.
<?php
$to = "cogansam@gmail.com";
$subject = "Contact Us";
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $title, $headers) ;
$title = $_post['title'];
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment