[opencms-dev] How to use CmsMail?
M Butcher
mbutcher at grcomputing.net
Fri Aug 15 20:41:02 CEST 2003
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>
More information about the opencms-dev
mailing list