Forum Moderators: coopster
I'm having problems linking to an external image in my email.
I'm using PHP to setup the headers as shown below.
$htmldata is pulled from a mysql database, where the html is stored directly.
the image is referenced as follows:
<img src="http://www.(domain).com/i/image.jpg">
However, the image breaks. Any ideas? Addslashes() causing problems? Something else?
$to = $email;
$subject = $mailsubject;
$slashdata = addslashes($htmldata);
$message = "<a href=\"http://www.(domain).com/smart/enduser.php?c=$campno\">Request information</a>\n";
$message .= "$slashdata";
$message .= "<a href=\"http://www.(domain).com/smart/enduser.php?c=$campno\">Request information</a>\n";$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "To: $email\r\n";
$headers .= "From: $distname <$distemail>\r\n";
mail($to, $subject, $message, $headers);