This application attaches a pdf file and mails it. The email with attachments came through fine in yahoo, gmail and a POP server, but was corrupt when sent to a comcast.net address.
In the comcast case the pdf was inserted in the body of the email as code preceded by
Content-Type: application/octet-stream; name="a_email_1555.pdf"
Content-Disposition: attachment; filename="a_email_1555.pdf
<mass of letters/numbers>
Am I doing something wrong or is this a comcast issue? Thanks.
$mail = new PHPMailer();
$mail->Mailer = self::FFF_USE_MAIL_SYSTEM;
$mail->Host = self::FFF_EMAIL_HOST;
$mail->From = self::FFF_EMAIL_FROM;
$mail->FromName = self::FFF_EMAIL_FROM_NAME;
$mail->WordWrap = 50;
$attach = self::PDF_FILE_DIR.$this->getPDF_File_Name($arrPDF);
(getPDF_File_Name just returns a filename to look for in PDF_FILE_DIR )
$mail->AddAttachment($attach, 'results.pdf'); // results pdf
Then add addresses and send.