Skip to content

Instantly share code, notes, and snippets.

@jigar007
Created April 22, 2017 10:17
Show Gist options
  • Save jigar007/ad384bdf2d9bc06d24da64bb7e04a6c0 to your computer and use it in GitHub Desktop.
Save jigar007/ad384bdf2d9bc06d24da64bb7e04a6c0 to your computer and use it in GitHub Desktop.
<?php
/**
* PHP mail sender class
* Created by PhpStorm.
* User: jamesMAC
* Date: 27/05/2016
* Time: 1:14 PM
*/
echo"mail";
$to = " <--Your email address-->";
$subject = "HTML email";
$message = "asdas";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <--Your email address-->' . "\r\n";
mail($to,$subject,$message,$headers);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment