[jboss-user] [JBoss Seam] - inline image email attachment

sandy_brydon do-not-reply at jboss.com
Wed Jan 23 16:37:38 EST 2008


i'm am resurrecting my old post http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100391#4100391
 which i got little traction (probably because i just hung it off another chain).

----------------

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=4122813#4122813

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122813



More information about the jboss-user mailing list