I am trying to send an email with HTML body generated from RMarkdown. I have sent this file as attachment and works just fine but I need it into the body.
The error I get is the following:
org.apache.commons.mail.EmailException: Building the MimeMessage failed
at org.apache.commons.mail.ImageHtmlEmail.buildMimeMessage(ImageHtmlEmail.java:112)
at org.apache.commons.mail.Email.send(Email.java:1436)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at RJavaTools.invokeMethod(RJavaTools.java:386)
Caused by: java.io.IOException: Cant resolve the following file resource :
I am trying to send an email with HTML body generated from RMarkdown. I have sent this file as attachment and works just fine but I need it into the body.
The error I get is the following:
...
Attached HTML file used (inside the ZIP)
Hope you guys can help me!
report.html.zip