<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>How to use CmsMail?</TITLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff size=2>Hi
Ivan,</FONT></SPAN></DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff
size=2>Actually I intend to write a process that will send email automatically
to a mail list.</FONT></SPAN></DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff size=2>I
think the first step should be learning the using of CmsMail
class.</FONT></SPAN></DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff size=2>There
are many ways to create a CmsMail object. I choose the easiest way, b<SPAN
class=729445107-15082003><FONT face=Arial color=#0000ff size=2>ut unfortunately,
I'm stuck at the first time.</FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff size=2>I
think the problem comes from the command</FONT></SPAN></DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial size=2>CmsMail mail=new
CmsMail(cmsObj, "dny@sdcgrp.com", "dny@sdcgrp.com", "subject", "content",
"text/plain");<FONT size=3> </FONT></FONT></SPAN></DIV>
<DIV><SPAN class=729445107-15082003>
<P><FONT face=Arial color=#0000ff size=2><SPAN class=729445107-15082003>I'm
finding out about it.</SPAN></FONT></P>
<P><FONT face=Arial color=#0000ff size=2><SPAN
class=729445107-15082003>Regards,</SPAN></FONT></P>
<P><FONT face=Arial color=#0000ff size=2><SPAN
class=729445107-15082003>Yendung</SPAN></FONT></P></SPAN></DIV>
<DIV><SPAN class=729445107-15082003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Ivan Jelenic
[mailto:ivan.jelenic@nbs.yu]<BR><B>Sent:</B> Friday, August 15, 2003 2:24
PM<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B> Re: [opencms-dev]
How to use CmsMail?<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Check registy.xml in WEB-INF/config directory and
fill correctly required tags.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards, Ivan.</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dny@sdcgrp.com href="mailto:dny@sdcgrp.com">Nguyen La Yen Dung</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, August 15, 2003 8:47
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [opencms-dev] How to use
CmsMail?</DIV>
<DIV><BR></DIV><BR>
<P><FONT size=2> Hi,</FONT> <BR><FONT size=2> </FONT> <BR><FONT
size=2> Has anyone used CmsMail class successfully? Please help.</FONT>
</P>
<P><FONT size=2> Here is my jsp code, and no mail is issued.</FONT>
</P>
<P><FONT size=2><%</FONT> <BR><FONT
size=2>com.opencms.flex.jsp.CmsJspActionElement cms = new </FONT><BR><FONT
size=2>
com.opencms.flex.jsp.CmsJspActionElement(pageContext, request,
response);</FONT> <BR><FONT size=2>com.opencms.file.CmsObject cmsObj =
cms.getCmsObject();</FONT> </P>
<P><FONT size=2>CmsMail mail=new CmsMail(cmsObj, "dny@sdcgrp.com",
"dny@sdcgrp.com", "subject", "content", "text/plain");</FONT> </P>
<P><FONT size=2>mail.start();</FONT> </P>
<P><FONT size=2>%></FONT> </P>
<P><FONT size=2> Thanks,</FONT> </P>
<P><FONT size=2> Yendung</FONT>
</P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>