<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=IT link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>Hi,</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span style='font-size:12.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><font face=Arial><span lang=EN-GB
style='font-family:Arial'>I&#8217;m using the version 1.2.4 of Mono and try to
use system.net.mail to send a simple mail.</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>This is the code:</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=teal
face="Courier New"><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
color:teal'>MailMessage</span></font><font size=2 face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'> message = <font
color=blue><span style='color:blue'>new</span></font> <font color=teal><span
style='color:teal'>MailMessage</span></font>();</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>message.From = <font
color=blue><span style='color:blue'>new</span></font> <font color=teal><span
style='color:teal'>MailAddress</span></font>(<font color=maroon><span
style='color:maroon'>&quot;gianluca.simoni@cstnet.it&quot;</span></font>);</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>message.To.Add(<font
color=blue><span style='color:blue'>new</span></font> <font color=teal><span
style='color:teal'>MailAddress</span></font>(<font color=maroon><span
style='color:maroon'>&quot;gianluca.simoni@cstnet.it&quot;</span></font>));</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>message.Subject =
<font color=maroon><span style='color:maroon'>&quot;This is my subject&quot;</span></font>;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>message.Body = <font
color=maroon><span style='color:maroon'>&quot;This is the content&quot;</span></font>;</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 color=teal
face="Courier New"><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
color:teal'>SmtpClient</span></font><font size=2 face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'> client = <font
color=blue><span style='color:blue'>new</span></font> <font color=teal><span
style='color:teal'>SmtpClient</span></font>();</span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'>client.Host = <font
color=maroon><span style='color:maroon'>&quot;smtp-net.cstgroup-pcb.com&quot;</span></font>;</span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>client.Send(message);</span></font></p>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>It&#8217;work with .Net but non with Mono where I&#8217;ve
this error:</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>C:\lavoro\odbc_informix\odbc_informix\bin\Release&gt;mono
odbc_informix.exe</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>Unhandled Exception: System.Net.Mail.SmtpException:
502 5.5.2 Error: command not recognized</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>&nbsp; at System.Net.Mail.SmtpClient.Authenticate
(System.String Username, System.String Password) [0x00000]</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>&nbsp; at System.Net.Mail.SmtpClient.PerformAuthentication
() [0x00000]</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>&nbsp; at System.Net.Mail.SmtpClient.Send
(System.Net.Mail.MailMessage message) [0x00000]</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>&nbsp; at odbc_informix.Program.Main (System.String[]
args) [0x00000]</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=3 face=Arial><span lang=EN-GB style='font-size:
12.0pt;font-family:Arial'>Please help me. Thanks</span></font></p>

</div>

</body>

</html>