Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Created March 5, 2012 18:00
Show Gist options
  • Save mikedfunk/1979874 to your computer and use it in GitHub Desktop.
Save mikedfunk/1979874 to your computer and use it in GitHub Desktop.
email example
<?php
$to = 'mikedfunk@gmail.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: admin@bookymark.com';
if (mail($to, $subject, $message, $headers))
{
echo "mail test 2 successful \n\n";
}
else
{
echo "ERROR sending mail 2 \n\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment