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
<[email protected]> 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>
>
> <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:
>
> 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 [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.
>

-- 
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.

Reply via email to