[opencms-dev] How to use CmsMail? - sovled

Nguyen La Yen Dung dny at sdcgrp.com
Mon Aug 18 10:27:03 CEST 2003


Hi,

It works.
It needs to be exported before using.

Thanks for your helps,

Yendung


-----Original Message-----
From: M Butcher [mailto:mbutcher at grcomputing.net]
Sent: Saturday, August 16, 2003 1:52 AM
To: opencms-dev at opencms.org
Subject: RE: [opencms-dev] How to use CmsMail?


As Ivan suggested, you will need to at least set the SMTP server in the
registry.xml file, otherwise the CmsMail package will not know which
SMTP server to use.

On Fri, 2003-08-15 at 02:14, Nguyen La Yen Dung wrote:
> 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
>                 To: 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
-- 
M Butcher <mbutcher at grcomputing.net>
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030818/85e93708/attachment.htm>


More information about the opencms-dev mailing list