Created
May 12, 2016 08:52
-
-
Save asifsaho/3d01a1fbce56e599d29bdc22de3c59c1 to your computer and use it in GitHub Desktop.
This file contains 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 | |
$to = '[email protected]'; | |
$subject = 'Email Template Testing'; | |
$headers = "From: " . "[email protected]" . "\r\n"; | |
$headers .= "Reply-To: ". "[email protected]" . "\r\n"; | |
$headers .= "MIME-Version: 1.0\r\n"; | |
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; | |
$message = file_get_contents('template.html'); | |
mail($to, $subject, $message, $headers); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment