Skip to Content
0
Former Member
Nov 04, 2014 at 06:33 PM

How to Send mail using hybris MailUtility with html page(using vm files)

389 Views

Hi All,

Here is the code for sending the normal text over mail but the same i want for vm file (html page)

HtmlEmail htmlEmail = (HtmlEmail) MailUtils.getPreConfiguredEmail();

htmlEmail.addTo("test@test.de");

htmlEmail.setSubject("test");

htmlEmail.setHtmlMsg( "Hello world" );

htmlEmail.send();

But here i want to send a complete page with dynamic attribute that is nothing but vm file for this page instead of sending the "Hello World" text in my mail.

Please provide a solution to achieve this if you came across with the same requirement. Thanks in advance.

Regards, Sunil