xtsy
09-20-2004, 06:50 AM
This is a code of mailing list , it works fine but doesnot display the images in HTML Format.It shows all the tables but no Images.Please help this is urgent.Thanks in advance
The following HTML Code was done to send email.
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td><img src="http://www.domain.com/image.gif" width="175" height="45"></td>
</tr>
</table>
_____________________________________________
Here is the code that process the mailing in Mailing list
________________________________________________
$headers = "From: $company_name <$contact_email>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\n";
$headers .= "X-Mailer: PHP \n";
$message = "$htmlbody<br><br><br><br><br><br><br><br><br><br><br><br>";
$optoutlink = "$path";
$optoutlink .= '/unsubscribe.php?action=unsub&email=';
$optoutlink .= "$email";
$message .= "<font color=#646464 size=2 face=arial>$optoutmessage</font><br>";
$message .= "<font size=2 face=arial><a target=\"_blank\" href=$optoutlink>Unsubscribe<a></font><br>";
mail($email, $subject, $message, $headers);
print "$header<br><br><center><font color=#FFFFFF size=3>An email was succesfully sent to $email!</font></center>";
exit;
}
__________________________________________________
The following HTML Code was done to send email.
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td><img src="http://www.domain.com/image.gif" width="175" height="45"></td>
</tr>
</table>
_____________________________________________
Here is the code that process the mailing in Mailing list
________________________________________________
$headers = "From: $company_name <$contact_email>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\n";
$headers .= "X-Mailer: PHP \n";
$message = "$htmlbody<br><br><br><br><br><br><br><br><br><br><br><br>";
$optoutlink = "$path";
$optoutlink .= '/unsubscribe.php?action=unsub&email=';
$optoutlink .= "$email";
$message .= "<font color=#646464 size=2 face=arial>$optoutmessage</font><br>";
$message .= "<font size=2 face=arial><a target=\"_blank\" href=$optoutlink>Unsubscribe<a></font><br>";
mail($email, $subject, $message, $headers);
print "$header<br><br><center><font color=#FFFFFF size=3>An email was succesfully sent to $email!</font></center>";
exit;
}
__________________________________________________
