title: What did VB replace the function "Set" with?
body: <p>I've found several aspx codes for forms which include the use of a "Set" function.  When I try them out on the hosting server, I get an error message that "Set is no longer supported".  Anyone know what replaced the "Set" command?</p>
  
  <p>More specifically, how do I change this:</p>
  
  <pre><code>Dim mail 
  Set mail = Server.CreateObject("CDONTS.NewMail") 
  mail.To = EmailTo 
  mail.From = EmailFrom 
  mail.Subject = Subject 
  mail.Body = Body 
  mail.Send
  </code></pre>
  
  <p>to be VB.NET compatible?</p>