title: Classic ASP, Sending E-mail error '8004020f'
body: <p>I am getting error, when I send a mail </p>
  
  <blockquote>
    <p>error '8004020f'<br>
    /sis/mail.asp, line 168</p>
  </blockquote>
  
  <p>Here my code.</p>
  
  <pre><code>Set cdoConfig = Server.CreateObject( "CDO.Configuration")
  
  cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
  cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="mail.dartconsulting.info"
  cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 
  cdoConfig.Fields.Update
  
  Set cdoMessage = Server.CreateObject ("CDO.Message")
  Set cdoMessage.Configuration = cdoConfig
  cdoMessage.From = "darteam28@gmail.com"
  
  cdoMessage.To=email
  cdoMessage.Subject = "Your  Password"
  cdoMessage.HtmlBody = "&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;"&amp;_
                  "&lt;tr&gt;&lt;td colspan=2&gt;Please find below your password&lt;/td&gt;&lt;/tr&gt;"&amp;_
                  "&lt;tr&gt;&lt;td&gt;Password :&amp;nbsp;&amp;nbsp;"&amp;password&amp;"&lt;/td&gt;&lt;/tr&gt;"&amp;_
                  "&lt;tr&gt;&lt;td&gt;UserName :&amp;nbsp;&amp;nbsp;"&amp;uid&amp;"&lt;/td&gt;&lt;/tr&gt;"&amp;_
                  "&lt;tr&gt;&lt;td&gt;EmailID :&amp;nbsp;&amp;nbsp;"&amp;email&amp;"&lt;/td&gt;&lt;/tr&gt;"&amp;_
                  "&lt;tr&gt;&lt;td colspan=2&gt;Please login and confirm/change your emailid&lt;/td&gt;&lt;/tr&gt;&lt;table&gt;"
  
  cdoMessage.Send
  Set cdoMessage = Nothing
  Set cdoConfig = Nothing
  </code></pre>