[
http://jira.jboss.com/jira/browse/JBSEAM-2187?page=comments#action_12412741 ]
Alexander Sparkowsky commented on JBSEAM-2187:
----------------------------------------------
You get an attachment of content-type "application/octet-stream" if the value
is a String (e.g. #{theme.images}/mail_top.jpg will create a value as String)
(getValue() instanceof String) == true
If you have a property that returns a file
public File getAttachmentFile() {
return new File("/path/to/image.gif");
}
you get the correct ContentType (image/gif)
However also the Content-Type is correct now this doesn't solve the issue.
E-mail attachment <cid:xxxxxx> problem
--------------------------------------
Key: JBSEAM-2187
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2187
Project: Seam
Issue Type: Bug
Components: Mail
Affects Versions: 2.0.0.CR3
Reporter: Stefano Zaccaria
Assigned To: Pete Muir
Priority: Minor
Fix For: 2.1.0.BETA1
When use the cid: tag with seam like the document read
<m:attachment
value="#{person.photo}"
contentType="image/jpeg"
fileName="#{person.firstname}_#{person.lastname}.jpg"
status="personPhoto"
disposition="inline" />
<img src="cid:#{personPhoto.contentId}" />
In my email client (Thunderbird) the image is attachment and not place inline
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira