Skip to content

Instantly share code, notes, and snippets.

@hernandesbsousa
Last active December 27, 2015 19:39
Show Gist options
  • Select an option

  • Save hernandesbsousa/7378472 to your computer and use it in GitHub Desktop.

Select an option

Save hernandesbsousa/7378472 to your computer and use it in GitHub Desktop.
sample php mail
<?php
$to = '[email protected]';
$subject = 'Test email using PHP';
$message = 'This is a test email message';
$headers = 'From: [email protected]' . "\r\n" . 'Reply-To: ' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers, '[email protected]');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment