title: SmtpClient class not picking up default parameters from Web.Config file
body: <p>config file :</p>
  
  <pre><code>&lt;system.net&gt;
  &lt;mailSettings&gt;
  &lt;smtp from="YYYYY@xxxxxx.com"&gt;
  &lt;network
  host="mail.xxxxxx.com"
  port="25"
  password="password"
  userName="user@xxxxxx.com"
  defaultCredentials="false"
  /&gt;
  &lt;/smtp&gt;
  &lt;/mailSettings&gt;
  &lt;/system.net&gt;
  </code></pre>
  
  <p>I've already tried defaultCredentials="true" but i recieved following message:</p>
  
  <p>System.FormatException: Smtp server returned an invalid response.</p>
  
  <p>how to fix the problem?</p>