Skip to content

Instantly share code, notes, and snippets.

@madeinnordeste
Created April 24, 2015 14:38
Show Gist options
  • Select an option

  • Save madeinnordeste/e274411dfb0727adfbf7 to your computer and use it in GitHub Desktop.

Select an option

Save madeinnordeste/e274411dfb0727adfbf7 to your computer and use it in GitHub Desktop.
PHP-Send-Email
<?php
$from = 'you-email@gmail.com';
$to = 'my-email@gmail.com';
$subject = 'subject email';
$message = 'email message here';
$headers = 'From: '.$from . "\r\n" .
'Reply-To: '.$from . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$status = mail ($to , $subject , $message, $headers);
echo $status;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment