Skip to content

Instantly share code, notes, and snippets.

@deuterium7
Created August 10, 2017 15:39
Show Gist options
  • Save deuterium7/b6e81e81e1f239d0c38d1f40f7bd2022 to your computer and use it in GitHub Desktop.
Save deuterium7/b6e81e81e1f239d0c38d1f40f7bd2022 to your computer and use it in GitHub Desktop.
<?php
ini_set('display_errors', 1);
$to = 'post0778@gmail.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com'."\r\n".
'Reply-To: webmaster@example.com'."\r\n".
'X-Mailer: PHP/'.phpversion();
mail($to, $subject, $message, $headers);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment