I have a static HTML page which gets generated after some operation. The HTML file contains iframe, external CSS, JS, XML, HTML files. How do I send the exact rendered HTML in the mail using Java mail API? I know I can type the HTML like
message.setContent("<html><body><h1>This is actual message</h1></body></html>","text/html" );
But I want to send an html page like
message.setContent("index.html","text/html" );
index.html contains external css, js, xml files.