[opencms-dev] Send Email From JSP

Andras Balogh andras at reea.net
Fri Apr 2 08:23:01 CEST 2004


    Hello,

If you mean to read the smtp settings from opencms's registry (registry.xml)
you can do it by:
I_CmsRegistry reg=cms.getRegistry();
String s=reg.getSystemValue("smtpserver");
(cms is CmsObject)

Best wishes,
Andras.

Travis Stude wrote:

> I would like to send an email from a jsp page, I need this email to go 
> to two people.  I found the class CmsMail and the method buildMessage, 
> but that requires that I know the smtp server.  I do not know the 
> address of that.  If there is an easier way of sending an email from 
> the page or if you know the SMTP server address for opencms I would 
> appreciate any help.
>  
> Thanks,
> TJ






More information about the opencms-dev mailing list