You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Marc Salvetti (JIRA)" <ji...@apache.org> on 2005/11/22 16:10:43 UTC
[jira] Commented: (COCOON-1693) When using src parameter on sendMail action, body is included as attachment, and when using body parameter, mimeType is always text/html
[ http://issues.apache.org/jira/browse/COCOON-1693?page=comments#action_12358248 ]
Marc Salvetti commented on COCOON-1693:
---------------------------------------
I changed 3 files :
MailMessageSender.java
MailSender.java
SendMail.java
Basically, i added a "bodyMimeType" parameter to the action, and checked if this attribute is set, use the setContent(body, mimeType) method rather than the setText(body, charset) method.
> When using src parameter on sendMail action, body is included as attachment, and when using body parameter, mimeType is always text/html
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: COCOON-1693
> URL: http://issues.apache.org/jira/browse/COCOON-1693
> Project: Cocoon
> Type: Bug
> Components: Blocks: Mail
> Versions: 2.1.8
> Reporter: Marc Salvetti
> Priority: Minor
> Attachments: MailMessageSender.java, MailSender.java, Sendmail.java
>
> If using the src parameter, the body is included as an attachment (the header Content-disposition=attachment) is set.
> Moreover, when trying to stick some html in the body parameter, the mimeType is always text/html.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira