Created
April 22, 2017 10:17
-
-
Save jigar007/ad384bdf2d9bc06d24da64bb7e04a6c0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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