Re: [appengine-java] JavaMail Multipart message with inline images
Voted and added a comment. It really is amazing that this simple feature is not supported. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] JavaMail Multipart message with inline images
I'm attempting to send an email that has an HTML body with inline images and it is not working. The main reason I believe this to be the case is that the App Engine wrapper around behind JavaMail requires a file name to be set. For my HTML snippet I have the following: div align=center We are going to Turks Caicos to see: table tr tdimg src='cid:identifier1'/img/td tdimg src='cid:identifier2'/img/td tdimg src='cid:identifier3'/img/td /tr /table /div * * Then I add the for each MimeBodyPart part = new MimeBodyPart(); File file = new File(resourceName); DataSource fds = new FileDataSource(file); part.setDataHandler(new DataHandler(fds)); part.setDisposition(MimeBodyPart.INLINE); // Offending Line Start part.setFileName(resourceName); // Offending Line End part.setContentID( + resourceRefId + ); // Add part to multi-part message.addBodyPart(part); My question is: 1. Is there a way to do this? 2. If so how? 3. If NOT, why? 4. And why is the file name required? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] JavaMail Multipart message with inline images
It's a longstanding bug/limitation in appengine - please star this issue: http://code.google.com/p/googleappengine/issues/detail?id=965 Jeff On Tue, Dec 14, 2010 at 5:28 PM, Ronald R. DiFrango ron.difra...@gmail.com wrote: I'm attempting to send an email that has an HTML body with inline images and it is not working. The main reason I believe this to be the case is that the App Engine wrapper around behind JavaMail requires a file name to be set. For my HTML snippet I have the following: div align=center We are going to Turks Caicos to see: table tr tdimg src='cid:identifier1'/img/td tdimg src='cid:identifier2'/img/td tdimg src='cid:identifier3'/img/td /tr /table /div Then I add the for each MimeBodyPart part = new MimeBodyPart(); File file = new File(resourceName); DataSource fds = new FileDataSource(file); part.setDataHandler(new DataHandler(fds)); part.setDisposition(MimeBodyPart.INLINE); // Offending Line Start part.setFileName(resourceName); // Offending Line End part.setContentID( + resourceRefId + ); // Add part to multi-part message.addBodyPart(part); My question is: Is there a way to do this? If so how? If NOT, why? And why is the file name required? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.