[opencms-dev] How to use CmsMail?

Nguyen La Yen Dung dny at sdcgrp.com
Fri Aug 15 10:29:02 CEST 2003


Hi Ivan,
 
Actually I intend to write a process that will send email automatically to a
mail list.
 
I think the first step should be learning the using of CmsMail class.
 
There are many ways to create a CmsMail object. I choose the easiest way,
but unfortunately, I'm stuck at the first time.
 
I think the problem comes from the command
 
CmsMail mail=new CmsMail(cmsObj, "dny at sdcgrp.com", "dny at sdcgrp.com",
"subject", "content", "text/plain"); 
I'm finding out about it.

Regards,

Yendung

 

-----Original Message-----
From: Ivan Jelenic [mailto:ivan.jelenic at nbs.yu]
Sent: Friday, August 15, 2003 2:24 PM
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] How to use CmsMail?


Check registy.xml in WEB-INF/config directory and fill correctly required
tags.
 
Best regards, Ivan.

----- Original Message ----- 
From: Nguyen La Yen Dung <mailto:dny at sdcgrp.com>  
To: opencms-dev at opencms.org <mailto:opencms-dev at opencms.org>  
Sent: Friday, August 15, 2003 8:47 AM
Subject: [opencms-dev] How to use CmsMail?



 Hi, 
  
 Has anyone used CmsMail class successfully? Please help. 

 Here is my jsp code, and no mail is issued. 

<% 
com.opencms.flex.jsp.CmsJspActionElement cms = new 
 
com.opencms.flex.jsp.CmsJspActionElement(pageContext, request, response); 
com.opencms.file.CmsObject cmsObj = cms.getCmsObject(); 

CmsMail mail=new CmsMail(cmsObj, "dny at sdcgrp.com", "dny at sdcgrp.com",
"subject", "content", "text/plain"); 

mail.start(); 

%> 

 Thanks, 

 Yendung 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030815/6a319738/attachment.htm>


More information about the opencms-dev mailing list