PHPmailer- outlook not receiving emails when including image
Posted: Mon Apr 07, 2008 12:07 am
Hello,
I am using phpmailer. I have html in the email including links to some images to include in there. Hotmail will display the images no problems however outlook is blocking the emails completely. I have included an AltBody but it won't receive that either (I think its not even registering the AltBody because it is able to generate some of the html).
This is the error that it throws in outlook:
Task 'the@email.com'- Receiving' reported error (0x800CCC90) : 'Your incoming (POP3) e-mail server has reported an internal error. If you continue to receive this message, contact your server administrator or Internet service provider (ISP). The server responded: .'
If I remove the image tags from the html code the email is received by the outlook client with no issues.
Here is my code:
Anyone know what the issue is here?
I am using phpmailer. I have html in the email including links to some images to include in there. Hotmail will display the images no problems however outlook is blocking the emails completely. I have included an AltBody but it won't receive that either (I think its not even registering the AltBody because it is able to generate some of the html).
This is the error that it throws in outlook:
Task 'the@email.com'- Receiving' reported error (0x800CCC90) : 'Your incoming (POP3) e-mail server has reported an internal error. If you continue to receive this message, contact your server administrator or Internet service provider (ISP). The server responded: .'
If I remove the image tags from the html code the email is received by the outlook client with no issues.
Here is my code:
Code: Select all
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = $mailHost;
$mail->SMTPAuth = true;
$mail->Username = $mailUsername;
$mail->Password = $mailPassword;
$mail->From = $fromAddress;
$mail->FromName = $fromName;
$mail->AddAddress($toAddress, $toName);
$mail->Subject = $subject;
$mail->Body = $body;
$mail->AltBody = strip_tags($body);
if(!$mail->Send())
{
echo "Message could not be sent.";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}