[opencms-dev] Send Emails

Joachim Arrasz info at arrasz.de
Tue Jan 16 17:28:45 CET 2007


Hi,

> Creating a web form in jsp, but how do I send emails in OpenCMS? I tried
> using javax.mail but it's doesn't allow me session access. What should I
> be using?

just use OpenCms internal Mailing... OpenCms comes with
jakarta-commons-mail support. It's wrapped and useable from API.

See CmsSimpleMail

http://synyx.de/api/opencms6.2.2/org/opencms/mail/CmsSimpleMail.html

hth

Achim

-- 
/**
 * Joachim Arrasz
 * Head of technical Research
 * Synyx GmbH & Co. KG --OpenCms Solution Provider--J2ME Solutions--
 * Karlstr. 68
 * 76137 Karlsruhe
 * phone  +49(0)721 66 48 79 32
 * fax    +49(0)721 66 48 877
 * eMail  joachim.arrasz at synyx.de
 * www    http://www.synyx.de
 */



More information about the opencms-dev mailing list