This content has been marked as final.
Show 2 replies
-
1. Re: Mail Attachment Issue With Some Clients
clerum Feb 13, 2010 5:20 PM (in response to mrlueck)JBSEAM-4442
JBSEAM-3906
After releasing an application to production I had reports of users not receiving email. It seems some email clients have a problem displaying attachments (in this case, PDFs) nested in a multipart/related. I tried both attachment
and inline
for content-disposition. These were mostly web clients. After modifying UIBody.java in seam's mail jar, I was able to view the attachments in those email clients. The fix was to get rid of the multipart/related
and add the content to the email directly:
if (findMessage().getAttachments().size() > 0) { getRootMultipart().addBodyPart(bodyPart, 0); for (MimeBodyPart attachment: findMessage().getAttachments()) { getRootMultipart().addBodyPart(attachment); } }else{ getRootMultipart().addBodyPart(bodyPart, 0); }
Has anyone else experienced this problem? Is this an appropriate solution/
JBSEAM-4442
JBSEAM-3906