Skip to content

Instantly share code, notes, and snippets.

@kousherAlam
Created March 11, 2017 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kousherAlam/de7be5ca175bb536321b79938fe38a2a to your computer and use it in GitHub Desktop.
Save kousherAlam/de7be5ca175bb536321b79938fe38a2a to your computer and use it in GitHub Desktop.
simple mail header for send mail form localhost
$headers = ‘MIME-Version: 1.0′ . “\r\n”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1′ . “\r\n”;
$headers .= ‘From: sender@sender.com’ . “\r\n”;
mail(“you@yourdomain.com”,”test subject”,”test body”,$headers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment