send mail by smtp (gmail sever)
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail">Sending email in .NET through Gmail</a>  </p>
</blockquote>



<pre><code>   using (var message = new MailMessage(fromAddress, toAddress)
        {
            Subject = subject,
            Body = body
        })
        {
            smtp.Send(message);
        }
</code></pre>

<p>I run the program and he brings me an error Failed to submit mail .. Here is the code what could be the problem?</p>
