Send email

From OpenCms Wiki
Revision as of 11:36, 27 June 2008 by Euku (Talk | contribs)
Jump to: navigation, search

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(); 
%>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox