Skip to content

Instantly share code, notes, and snippets.

@asifsaho
Created May 12, 2016 08:52
Show Gist options
  • Save asifsaho/3d01a1fbce56e599d29bdc22de3c59c1 to your computer and use it in GitHub Desktop.
Save asifsaho/3d01a1fbce56e599d29bdc22de3c59c1 to your computer and use it in GitHub Desktop.
<?php
$to = 'asif.saho@gmail.com';
$subject = 'Email Template Testing';
$headers = "From: " . "alu@mula.com" . "\r\n";
$headers .= "Reply-To: ". "alu@mula.com" . "\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