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 = '[email protected]'; $subject = 'Test email using PHP'; $message = 'This is a test email message'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\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