Hi Admim,

Hope you are doing great.

I am developer and My Client had a website name "Reliablerxpharmacy.Com" from which there is Contact us page through which user comes and make General enquires to the admin and email is "kane[at]reliablerxpharmacy.com" Now Lets I start the issue which our client faces is that when he view the email into the Outlook/Thunderbird/Webmail HTML Code is display but when changes the configure id to our office Id "rg[at]tcms-sep.com" then it will be in well HTML form. As we are contacing the RackSpace Hosting as website is present there and they says your header contains the blank line which we not understand So if you have better understanding please see as per I am pasting here the header code and HTML message which is gone.

You can find the Contacts Us page at this URL:
http://www.reliablerxpharmacy.com/contactus.html

Down Here you can see the PHP Code:----------
>>>----------------------------------------------------------------------------------------------------------->>>>
$msg ='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Mail</title></head>
<body>
<table bgcolor="#FFF9EF" width="100%" border="3" cellpadding="0" cellspacing="0" bordercolor="#8E8E90">
<tr>
<td colspan="2"><table bgcolor="#DBB37F" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="http://www.reliablerxpharmacy.com/skin1/images/alldaychemist.jpg" alt="" /></td>
<td style="width:100%; font-size:24px;color:#24585e; background-color: #DBB37F;"> '.ucfirst($querytypefield[0]['queryname']).'</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="1" cellspacing="2" cellpadding="2">';
foreach($querytypefield as $val){
$fieldname=$val['queryfieldname'];
$fieldname1=$_POST[$fieldname];
if($fieldname=="email"){
$emailfrom=$fieldname1;
}
$msg .='<tr>
<td width="40%" align="left" style="padding: 5px 15px; font-weight:bold; color:#000;">'.$val['queryfieldtitle'].'</span> :</td>
<td width="60%">'.$fieldname1.'</td>
</tr>';
}
$msg .='<tr>
<td colspan="2" style="text-align:center; font-size:11px; color:#000;"><p> </p>
<p> </p>
<p>Copyright 2011 Reliablerxpharmacy. All rights reserved. <br />
</p></td>
</tr>
</table>
</td></tr>
</table>
</body>
</html>';
$headers = "From: $emailfrom\n";
$headers .= "Reply-To: $emailfrom\n";
$headers .= "Return-Path: $return\n";
$headers .= "X-Mailer: php/" . phpversion();
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "Content-transfer-encoding: base64\n";
$body = chunk_split( base64_encode( $msg ) );
$conmail=mail($emailto, $subject, $body, $headers);
if($conmail){
$smarty->assign("conmsg1", "Your message has been successfully sent to our team");
$smarty->assign("name", '');
$smarty->assign("email", '');
$smarty->assign("order", '');
$smarty->assign("query", '');
}else{
$smarty->assign("errors", "Error while sending mail.");
$smarty->assign("name", $name);
$smarty->assign("email", $email);
$smarty->assign("order", $order);
$smarty->assign("query", $query);
}
>>>----------------------------------------------------------------------------------------------------------->>>>

Please look into the same and let me know what possible solution or suggestion you can tell us.
Waiting for your urgent reply asap.

Regards,
Rajat Kumar