Description
The email action ignores value of content_type attribute when attachment attribute is set.
This results in an email with a html body sent as a plaintext.
if(contentType.equals("text/html")) { MimeBodyPart bodyHtmlPart = new MimeBodyPart(); bodyHtmlPart.setContent(body, contentType); multipart.addBodyPart(bodyHtmlPart); } else{ MimeBodyPart bodyTextPart = new MimeBodyPart(); bodyTextPart.setText(body); multipart.addBodyPart(bodyTextPart); }
Attachments
Attachments
Issue Links
- is duplicated by
-
OOZIE-3030 Oozie Mail action -<attachment> is causing issues with <body> formatting
- Resolved