Hello,
I need to send (by email) a report (in html) generated by JasperReports.
JasperReports generates an xxx.html file with references to an xxx.html_files/px file.
I use MimeMessageHelper.setText(xxx.html)
Now my questions are:
1. How do I include/embed the xxx/px data in the email as well? I looked at MimeMessageHelper.addInline(cid, ...) but the references in xxx.html to a xxx/px are not done with cid:.
2.Is there a way to avoid the generation of these files xxx.html and xxx.html_files/px and directly send the generated report by email? With ModelAndView?
I looked at the various docs but didn't find anything for me.
Any help welcome,
Thanks in advance,
Yves.


.
Reply With Quote
(I parsed the HTML and transformed the image URLs into cid: URLs).