I am having trouble with how an inline attachment is supposed to work since it 
doesn't seem to be creating a boundary with Content-Type: multipart/related 
around the attachment, it merely relies on the outer multipart/mixed boundary 
defined in the header of the email.

The effect is that my email client (Thunderbird) is treating the image as an 
attachment and is not placing it inline.

...
  | <m:attachment 
  |     value="#{emailService.params.get('img_logo')}" 
  |     fileName="logo.gif" 
  |     status="logo" 
  |     disposition="inline" />
  | <img src="cid:#{logo.contentId}" alt="logo" />
  | ...

(the attachment value references a java.net.URL - i doubt this matters, but 
just in case)

everything else appears to be correct:
- the header for the logo:
Content-Type: image/gif; charset=ISO-8859-1; name=logo.gif
  | Content-Transfer-Encoding: base64
  | Content-ID: <ckgkyystehilrvoyfavc>
  | Content-Disposition: inline; filename=logo.gif

- the corresponding img tag:
<img src="cid:ckgkyystehilrvoyfavc" alt="logo" />

is this incorrect? perhaps i have misconfigured something?

jboss-4.2.1.GA
jboss-seam-2.0.0.CR3


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100391#4100391

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100391
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to