[opencms-dev] Can templateone really provide e-mail sending?

Robert Petermeier robert2.0 at gmx.de
Wed May 4 08:21:22 CEST 2005


Domenico De Seta schrieb:
> Hello,
> I am still trying to use templateone to send e-mails from my opencms
> server (without any success so far!): looking inside the
> CmsHtmlMail.java code it appears that you need to import some Apache
> Commons classes:

Sending E-Mails is not templateone functionality but part of the OpenCms 
API. It extends the commons e-mail library in that it reads the 
mailserver settings from the OpenCms configuration files. What you have 
to do is the following:

1. Configure the e-mail server in opencms-system.xml.
2. In a JSP or JavaBean, construct a new CmsHtmlMail object.
3. Use the various setXxx() methods to set recipients, subject, etc.
4. use send() to send it.

It's rather simple so if it still won't work you should make sure there 
are no problems with the server, firewall, network, ...


Regards,
Robert



More information about the opencms-dev mailing list