Wednesday, August 18, 2010

Send html mail with PHP

$to = 'pleace your mail id here';
$subject =’Place your subject here’;
$random_hash = md5(date('r', time()));
$headers = 'From: '.$my_fname.' '.$my_lname.' ' ."< ".$my_email." >". "\r\n";
$headers .= "Reply-To: ". $my_email. "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$massage='|table width="100%" border="0" align="center" cellpadding="0" cellspacing="1"|
|tr||td|Title :|/td||td|'.$my_title.'|/td||/tr|
|tr||td|First Name :|/td||td|'.$my_fname.'|/td||/tr|
|tr||td|Last Name :|/td||td|'.$my_lname.'|/td||/tr|
@mail( $to, $subject, $massage, $headers );

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off