PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$from = "me@myemail.co.za";
$subject = "Test E-Mail";
$headers = "MIME-Version: 1.0\r\n";
$headers = "From: My Email<$from>\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$message = "This is an html message with images";
$message .= "<img src='http://www.mywebsite.com/images/logo.jpg' width='60' height='60'>";
$message .= "<img src=''http://www.mywebsite.com/view.php?ID=$ID";
if (mail($email,$subject,$message,$headers)) {
echo "Message has been sent";
}
else {
echo "Message was not sent <p>";
exit;
}
The email sends fine, the logo displays fine, but the blob image comes up blank. If I copy the url directly into my browser the blob image displays with no problem. Any ideas?