Skip to content

Instantly share code, notes, and snippets.

@kousherAlam
Created March 11, 2017 08:43
Show Gist options
  • 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: [email protected]’ . “\r\n”;
mail(“[email protected]”,”test subject”,”test body”,$headers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment