Skip to content

Instantly share code, notes, and snippets.

@PunchRockgroin
Created November 12, 2014 23:16
Show Gist options
  • Save PunchRockgroin/29a1b6caef75eb7f4e66 to your computer and use it in GitHub Desktop.
Save PunchRockgroin/29a1b6caef75eb7f4e66 to your computer and use it in GitHub Desktop.
Mail Test
<?php $to = 'nobody@example.com'; $subject = 'Test email using PHP'; $message = 'This is a test email message'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers, '-fwebmaster@example.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment