[opencms-dev] e-mail content

Thomas Maerz thomasmaerz at gmx.de
Thu Jun 30 00:09:34 CEST 2005


"Borja Marcos Suarez" <borja.suarez at fundacionctic.org> writes:

> I don't know how to read the content of the html file. I mean, I can
> write the subject and the text I want... but I need to add the HTML
> content from the file that I now the path.


Something like

| String content = cms.getContent( "/send/this/text.html", "body", new Locale( "en" ) );
| CmsHtmlMail mail = new CmsHtmlMail();
| mail.setHtmlMsg( content );
| mail.send();


Regards,
Thomas




More information about the opencms-dev mailing list