<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
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";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]--><span style="font-size: 12pt; font-family: "Times New Roman";">Yeah to get round that problem I had download
the Webform source code and go into the CmsFormHandler class and edit the sendConfirmationMail()
and sendMail() functions<br>
<br>
You then have to add the setTLS flag after CmsHtmlMail has been initialised in
both those functions:<br>
// create a HTML email<br>
CmsHtmlMail theMail = new CmsHtmlMail();<br>
theMail.setTLS(true); // Added this line<br>
<br>
This was a quick fix but you could take it further and try and add a tick box
in the web form content type and pick up the setting from there.<br>
<br>
Graeme</span><br><br><hr id="stopSpelling">Date: Tue, 13 Apr 2010 12:52:05 -0300<br>From: mlbinelli@gmail.com<br>To: opencms-dev@opencms.org<br>Subject: Re: [opencms-dev] WEBFORM Send email not works<br><br>Thanks Michael....<br><br><div class="ecxgmail_quote">2010/4/13 Michael Moossen <span dir="ltr"><<a href="mailto:m.moossen@alkacon.com">m.moossen@alkacon.com</a>></span><br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
Hi Marcos!<br>
<br>
Gmail uses the TLS protocol which is not yet supported (better said<br>
configurable) in OpenCms.<br>
<br>
Sorry<br>
-------------------<br>
Michael Moossen<br>
<br>
Alkacon Software GmbH - The OpenCms Experts<br>
<a href="http://www.alkacon.com">http://www.alkacon.com</a> - <a href="http://www.opencms.org">http://www.opencms.org</a><br>
<div class="ecxim"><br>
On 13.04.2010 03:11, marcos binelli wrote:<br>
> Hi all<br>
><br>
> I create one form to send emails.<br>
> I alter the opencms-system.xml as follow lines:<br>
><br>
> <mail><br>
</div>> <mailfrom><a href="mailto:jmbinfo@gmail.com">jmbinfo@gmail.com</a> <mailto:<a href="mailto:jmbinfo@gmail.com">jmbinfo@gmail.com</a>></mailfrom><br>
> <mailhost name="<a href="http://smtp.gmail.com">smtp.gmail.com</a> <<a href="http://smtp.gmail.com">http://smtp.gmail.com</a>>" protocol="smtp"<br>
> port="465" user="<a href="mailto:jmbinfo@gmail.com">jmbinfo@gmail.com</a> <mailto:<a href="mailto:jmbinfo@gmail.com">jmbinfo@gmail.com</a>>"<br>
<div class="ecxim">> password="xxxxxx"/><br>
> </mail><br>
><br>
> But when l try to send the email, fails....<br>
><br>
> And in the log l saw the message: "Could not connect to SMTP host:<br>
</div>> <a href="http://smtp.gmail.com">smtp.gmail.com</a> <<a href="http://smtp.gmail.com">http://smtp.gmail.com</a>>, port: 465, response: -1"<br>
<div class="ecxim">><br>
> What is wrong????<br>
><br>
> Thanks for the help<br>
><br>
><br>
><br>
><br>
</div>> _______________________________________________<br>
> This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please visit<br>
> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</blockquote></div><br> <br /><hr />Get a free e-mail account with Hotmail. Sign-up now. <a href='' target='_new'></a></body>
</html>