<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C550DD.B8761CB0">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:HyphenationZone>14</w:HyphenationZone>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;
mso-font-charset:2;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:\5B8B\4F53;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-update:auto;
mso-style-parent:"";
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:18.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
mso-layout-grid-align:none;
text-autospace:none;
font-size:11.0pt;
mso-bidi-font-size:12.0pt;
font-family:Arial;
mso-fareast-font-family:SimSun;
mso-bidi-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:18.0pt;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
mso-layout-grid-align:none;
text-autospace:none;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-fareast-language:IT;}
span.StileMessaggioDiPostaElettronica17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:994992706;
mso-list-type:hybrid;
mso-list-template-ids:-2014280852 -1275844570 68157443 68157445 68157441 68157443 68157445 68157441 68157443 68157445;}
@list l0:level1
{mso-level-start-at:5;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Arial;
mso-fareast-font-family:SimSun;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tabella normale";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=IT link=blue vlink=purple style='tab-interval:35.4pt'>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'><span
style='mso-spacerun:yes'> </span>Hello, Robert Petermeier wrote:<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>>Sending E-Mails is not templateone
functionality but part of the OpenCms <o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>>API. It extends the commons e-mail
library in that it reads the <o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>>mailserver settings from the OpenCms
configuration files. What you have <o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>>to do is the following:<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>><o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>>1. Configure the e-mail server in
opencms-system.xml.<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>>2. <span class=GramE>In a</span> JSP or
JavaBean, construct a new CmsHtmlMail object.<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>>3. Use the various <span class=GramE>setXxx</span>()
methods to set recipients, subject, etc. 4. <span class=GramE>use</span> send()
to send it.<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>><o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>><span class=GramE>It's</span> rather
simple so if it still won't work you should make sure there are no problems
with the server, firewall, network, ...<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>Thank you Robert, but<span class=GramE> :</span><o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal style='margin-left:0cm'><font size=2 face=Arial><span
style='font-size:11.0pt'><span style='mso-bidi-font-size:12.0pt'><span
style='mso-spacerun:yes'> </span><span
style='mso-spacerun:yes'> </span><span class=GramE>as</span> far as point
1. <span class=GramE>ia</span> concerned I don’t know what to put in the opencms-system.xml
lines:<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'><mail> <o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'><span
style='mso-spacerun:yes'>
</span><mailfrom>nobody@nowhere.com</mailfrom><o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'><span
style='mso-spacerun:yes'>
</span><mailhost name="my.smtp.server" protocol="smtp"
user="username" password="secure"/<span class=GramE>></span><o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'><span
style='mso-spacerun:yes'>
</span><mailhost name="alternative.smtp.server"/<span class=GramE>></span><o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'><span
style='mso-spacerun:yes'>
</span><span
style='mso-spacerun:yes'> </span><mailhost
name="another.alternative.smtp.server"/<span class=GramE>></span><o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'></mail><o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><span class=GramE><font size=2 face=Arial><span
style='font-size:11.0pt'><span style='mso-bidi-font-size:12.0pt'>in</span></span></font></span>
place of <span style='mso-spacerun:yes'> </span>:<span
style='mso-spacerun:yes'> </span><span
style='mso-spacerun:yes'> </span>“nobody@nowhere.com” <span
style='mso-spacerun:yes'> </span>and <span
style='mso-spacerun:yes'> </span>"my.smtp.server" <o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>Thomas Maerz <span class=GramE>in<span
style='mso-spacerun:yes'> </span>a</span> previous answer to my question
replied: <o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>“IMHO the names are very well
describing themselves. Take a look here and copy your settings from Outlook.<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>E. g. "<span class=GramE>my.smtp.server</span>"
is "Outgoing mail server (SMTP)".<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'><span
style='mso-bidi-font-size:12.0pt'>To him I replied:<o:p></o:p></span></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><span class=GramE><font size=2 face=Arial><span
style='font-size:11.0pt'><span style='mso-bidi-font-size:12.0pt'>do</span></span></font></span>
you mean I have to use my e-mail client account settings? I was thinking that
since the recommend message has to be sent by the Opencms server it was
necessary to properly configure “its” mail server… <span
class=GramE>I</span> am a little bit confused so please if you can explain
better what goes on behind the sending of e-mail messages from opencms .jsp
files.<o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal style='margin-left:0cm'><span class=GramE><font size=2
face=Arial><span style='font-size:11.0pt'><span style='mso-bidi-font-size:12.0pt'>I
didn’t receive any clarification of what Thomas had suggested…and
still I don’t understand how to “configure the e-mail server”.</span></span></font></span><o:p></o:p></p>
<p class=MsoNormal style='margin-left:0cm'><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal style='margin-left:0cm'><font size=2 face=Arial><span
style='font-size:11.0pt'><span style='mso-bidi-font-size:12.0pt'>Robert, could
you explain more in detail how to proceed?<o:p></o:p></span></span></font></p>
<p class=MsoNormal style='margin-left:0cm'><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal style='margin-left:0cm'><font size=2 face=Arial><span
style='font-size:11.0pt'><span style='mso-bidi-font-size:12.0pt'>Thank you
again<o:p></o:p></span></span></font></p>
<p class=MsoNormal style='margin-left:0cm'><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal style='margin-left:0cm'><st1:PersonName><font size=2
face=Arial><span style='font-size:11.0pt'><span style='mso-bidi-font-size:
12.0pt'>Dom</span></span></font></st1:PersonName>enico<o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
<p class=MsoNormal><font size=2 face=Arial><o:p> </o:p></font></p>
</div>
</body>
</html>
<BR>
<P><FONT SIZE=2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Anti-Virus.<BR>
Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 03/05/2005<BR>
</FONT> </P>