title: SMTP configuration SendUsing configuration value is invalid with ASP-Classic
body: <p>I'm trying to get an email sent using ASP classic, and am having trouble with SMTP configuration.</p>
  
  <p>The error:</p>
  
  <blockquote>
    <p>CDO.Message.1 error '80040220' The "SendUsing" configuration value is
    invalid.</p>
  </blockquote>
  
  <p>The Code(for the email itself):  </p>
  
  <pre><code>Set objMsg = Server.CreateObject("CDO.Message")  
  objMsg.From     = "name@name.com"  
  objMsg.To       = "themetatron@gmail.com"  
  objMsg.Subject  = "Procurement Ally Update"  
  objMsg.TextBody = strBody 
  </code></pre>
  
  <p>The Code I tried to configure with (pt 1):  </p>
  
  <pre><code>sch = "http://schemas.microsoft.com/cdo/configuration/"  
  Set cdoConfig = CreateObject("CDO.Configuration")   
      With cdoConfig.Fields   
          .Item(sch &amp; "smtpserver") = "127.0.0.1"   
          .update   
      End With   
  </code></pre>
  
  <p>That didn't work, so I tried:  </p>
  
  <pre><code>objMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"  
  objMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25  
  objMsg.Configuration.Fields.Update 
  </code></pre>
  
  <p>That also didn't work.</p>
  
  <p>(Yes, I didn't show it, but at the end there's a call to <code>objMsg.Send</code>)</p>
  
  <p>As far as I can tell, the local boxes SMTP service is running and ready to do its duty.</p>
  
  <p>Can anyone help?</p>