[
https://issues.apache.org/jira/browse/OOZIE-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16865598#comment-16865598
]
Andras Salamon commented on OOZIE-3030:
---------------------------------------
This describes the problem better:
[https://community.hortonworks.com/questions/155949/oozie-email-action-with-content-type-texthtml-and.html]
I checked the code, it seems to me we just ignore the {{contentType}} when we
also use attachment so {{javax.mail}} will use the default {{plain}} type.
> Oozie Mail action -<attachment> is causing issues with <body> formatting
> ------------------------------------------------------------------------
>
> Key: OOZIE-3030
> URL: https://issues.apache.org/jira/browse/OOZIE-3030
> Project: Oozie
> Issue Type: Bug
> Reporter: Peter Cseh
> Priority: Major
>
> When you define a email action in Oozie with <attachment>, then the text in
> <body> is not formatted.
> Email Action:
> {code}
> <action name="email-f689">
> <email xmlns="uri:oozie:email-action:0.2">
> <to>[email protected]</to>
> <subject>Test-HTML-Text</subject>
> <body>
> <![CDATA[${wf:name()} Succeeded: During Execution @ ${timestamp()}
> <br/>
> <br/>
> Workflow Id: ${wf:id()} <br/>
> Status : <br/>
> <br/>
> <span style="text-decoration: underline;">URI for Logs</span>
> <br/>]]>
> </body>
> <content_type>text/html</content_type>
> <attachment>${nameNode}/user/admin/shell_output.txt</attachment>
> </email>
> <ok to="End"/>
> <error to="Kill"/>
> </action>
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)