lijufeng2016 opened a new issue #5032: URL: https://github.com/apache/incubator-dolphinscheduler/issues/5032
*For better global communication, please give priority to using English description, thx! * *Please review https://dolphinscheduler.apache.org/en-us/community/development/issue.html when describe an issue.* **Describe the question** When send a email attachment,I got this exception as following: javax.mail.MessagingException: IOException while sending message at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1365) at javax.mail.Transport.send0(Transport.java:255) at javax.mail.Transport.send(Transport.java:124) at org.apache.dolphinscheduler.plugin.alert.email.MailSender.attachContent(MailSender.java:345) at org.apache.dolphinscheduler.plugin.alert.email.MailSender.attachment(MailSender.java:257) at org.apache.dolphinscheduler.plugin.alert.email.MailSender.sendMails(MailSender.java:207) at org.apache.dolphinscheduler.plugin.alert.email.MailSender.sendMails(MailSender.java:143) at org.apache.dolphinscheduler.plugin.alert.email.EmailAlertChannel.process(EmailAlertChannel.java:45) at org.apache.dolphinscheduler.alert.runner.AlertSender.alertResultHandler(AlertSender.java:162) at org.apache.dolphinscheduler.alert.runner.AlertSender.run(AlertSender.java:87) at org.apache.dolphinscheduler.alert.AlertServer.runSender(AlertServer.java:134) at org.apache.dolphinscheduler.alert.AlertServer.start(AlertServer.java:146) at org.apache.dolphinscheduler.alert.AlertServer.main(AlertServer.java:159) Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_1231696346.1615378906068" at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:896) at javax.activation.DataHandler.writeTo(DataHandler.java:317) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1694) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1913) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1315) ... 12 common frames omitted **What are the current deficiencies and the benefits of improvement** - The dev current only support table and text format email content,but not attachment format **Which version of DolphinScheduler:** -[dev] **Describe alternatives you've considered** A clear and concise description of any alternative improvement solutions you've considered. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
