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>
<td><img src='cid:identifier1'></img></td>
<td><img src='cid:identifier2'></img></td>
<td><img 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.