Hi, I'm using php and mysql to read from a table and mail() html content to my subscribers. Problem is that it looks ok when it arrives at some addresses (eg Hotmail) but doesn't for others (eg btconnect.com) where it loses links etc. The content body of my messages include html tags but I don't wrap the whole thing within <html>, <head> and <body> tags - is this the problem?Anyone know of a 'bullet-proof' way of ensuring content gets through intact? This is the relevant part of the script. Any help appreciated.
// Email Subscribers
$email = "subscriptions@mysite.com";
$subject="mysubject;
$query_rsSubscriber = "SELECT * FROM subscriber ;
$rsSubscriber = mysql_query $query_rsSubscriber, $connD😎 or die(mysql_error());
while ($row_rsSubscriber = mysql_fetch_assoc($rsSubscriber))
{
extract($row_rsSubscriber) ;
$to = $subEmail;
$mailbody2 = $subFirstName;
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: subscriptions@mysite.com\n";
$headers .= "Reply-To: subscriptions@mysite.com\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: My mailer";
$message = $mailbody1 . $mailbody2 . $mailbody3;
$did_it_work = mail ($to, $subject, $message, $headers);
if ($did_it_work == false) {
$query_rsError = "Insert into errorlog set errProg = 'adminSendMail'";
$rsError = mysql_query($query_rsError, $connD😎 or die(mysql_error());
}
// Email1 End