Send email
From OpenCms Wiki
Via the Opencms Mailing list, here's a simple scriptlet to send email from a JSP page:
<%@ page import="org.opencms.mail.CmsSimpleMail" %> <% CmsSimpleMail sm = new CmsSimpleMail(); sm.setMsg("You like it?"); sm.addTo("someone at somplace.com"); sm.setFrom("other at here.com"); sm.send(); %>
This article is a stub. You can help OpenCms Wiki by expanding it.
|