Saturday 11 October 2014

simple mail function in php

<?php
$email = "abc@gmail.com"; 
$sub="Newsletter subcription";
   
$msg="<table border='1' cellspacing='5' cellpadding='5' align='center' width='600px'>
<tr><td colspan='5' align='center'>Thanks for Subcription</td></tr>

<tr>
<td align='center'>You coupn code for 10% discount</td>
<td>abc@123jk</td>
</tr>
</table>";

  $headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .="From: yogi.lalit2391@gmail.com";
 
//mail($email,$sub,$msg,$headers);
?>

No comments:

Post a Comment