|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Mail.app missing attachmentsHello List, For some time now I'm having problems with phpMailer when sending a html message to an Apple's Mail.App mailclient. The automated message contains three pdf-files and one inline gif-image (company logo). However when I include the inline image only one pdf-file shows up in Mail.App (version 3.3). Strange thing is, when I exclude the inline image all pdf-files show up perfectly and all is well (except for no logo). I've confirmed that the attachments do get sent, but Mail.App somehow simply doesn't show them. Other mailclients (like Gmail, Outlook, Thunderbird, etcetera) never had any trouble with the attachments. I've experimented with different versions of phpMailer up to version 2.2.1 with no avail. The code which I use to sent out the mail: require("class.phpmailer.php"); $mail = new phpmailer(); $mail->IsSMTP(); $mail->Host = 'localhost'; $mail->From = 'xxxx@...'; $mail->FromName = 'xxx'; $mail->ClearAllRecipients(); $mail->ClearAttachments(); $mail->AddAddress($email); $mail->AddEmbeddedImage('./images/mail_head.gif','mail_head','mail_head.gif', 'base64', 'image/gif'); $mail->AddAttachment('file1.pdf'); $mail->AddAttachment('file2.pdf'); $mail->AddAttachment('file3.pdf'); $mail->AttachAll(); $mail->ContentType = "text/html"; $mail->Subject = $subject; $mail->AltBody = $alt_content; $mail->Body = $html_header.$content.$html_footer; $mail->WordWrap = 100; $mail->Send(); I have no idea where to look next... Is there something I'm doing wrong? Thanks for your reply, Fili ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Phpmailer-general mailing list Phpmailer-general@... https://lists.sourceforge.net/lists/listinfo/phpmailer-general |
|
|
Re: Mail.app missing attachmentsFili wrote:
> Hello List, > > For some time now I'm having problems with phpMailer when sending a html > message to an Apple's Mail.App mailclient. > > The automated message contains three pdf-files and one inline gif-image > (company logo). However when I include the inline image only one > pdf-file shows up in Mail.App (version 3.3). Strange thing is, when I > exclude the inline image all pdf-files show up perfectly and all is well > (except for no logo). I've confirmed that the attachments do get sent, > but Mail.App somehow simply doesn't show them. > > Other mailclients (like Gmail, Outlook, Thunderbird, etcetera) never had > any trouble with the attachments. > I've experimented with different versions of phpMailer up to version > 2.2.1 with no avail. > > The code which I use to sent out the mail: > > require("class.phpmailer.php"); > $mail = new phpmailer(); > $mail->IsSMTP(); > $mail->Host = 'localhost'; > $mail->From = 'xxxx@...'; > $mail->FromName = 'xxx'; > $mail->ClearAllRecipients(); > $mail->ClearAttachments(); > $mail->AddAddress($email); > $mail->AddEmbeddedImage('./images/mail_head.gif','mail_head','mail_head.gif', > > 'base64', 'image/gif'); > $mail->AddAttachment('file1.pdf'); > $mail->AddAttachment('file2.pdf'); > $mail->AddAttachment('file3.pdf'); > $mail->AttachAll(); > $mail->ContentType = "text/html"; > $mail->Subject = $subject; > $mail->AltBody = $alt_content; > $mail->Body = $html_header.$content.$html_footer; > $mail->WordWrap = 100; > $mail->Send(); > > I have no idea where to look next... > Is there something I'm doing wrong? > > Thanks for your reply, > Fili > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Phpmailer-general mailing list > Phpmailer-general@... > https://lists.sourceforge.net/lists/listinfo/phpmailer-general > > *bump* ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Phpmailer-general mailing list Phpmailer-general@... https://lists.sourceforge.net/lists/listinfo/phpmailer-general |
| Free Forum Powered by Nabble | Forum Help |