title: Microsoft VBScript runtime error: Permission denied: 'CreateObject' when creating CDONTS.NEWMAIL
body: <p>I'm making changes to a website written in classic asp.</p>
  
  <p>My system is a Windows 7 64-bit.</p>
  
  <p>I've been able to get the website to run, after setting it up as a classic asp running on IIS6.</p>
  
  <p>When it attempts to execute the following code, I get the permission denied error:</p>
  
  <pre><code>    from1 = "Kevin@company.com"
  
      to1 = "staff1@company.com"
      to2 = "staff2@company.net"
      to3 = "staff3@client.com"
  
      strTo = to1
      If Len(strTo) &gt; 0 Then
          If Len(to2) &gt; 0 Then
              strTo = strTo &amp; ";" &amp; to2
          End If
      Else
          strTo = to2
      End If
  
      If Len(strTo) &gt; 0 Then
          If Len(to3) &gt; 0 Then
              strTo = strTo &amp; ";" &amp; to3
          End If
      Else
          strTo = to3
      End If
  
  
      body = reqApprName &amp; "&lt;br /&gt;" &amp; reqApprPhone &amp; "&lt;br /&gt;" &amp; reqApprEmail &amp; "&lt;br /&gt;Loan Number: "_
          &amp; loannum &amp; "&lt;br /&gt;&lt;br /&gt;Please do not reply back to this email.  The Vendor has provided the following "_
          &amp; "comment associated with this order.&lt;br /&gt;&lt;br /&gt;" &amp; reqUndueInfluenceComment
  
      Set ObjMail = CreateObject("CDONTS.Newmail")
      ObjMail.From = from1
  ObjMail.To = strTo
  ObjMail.Subject = "Appraisal Order "&amp;OrderNum&amp;" by Vendor"
      ObjMail.BodyFormat = 0
      ObjMail.MailFormat = 0
      ObjMail.Body = body
  ObjMail.Send
  Set ObjMail = Nothing
  </code></pre>
  
  <p>I'm puzzled, since I've never had a problem with CDONTS before. Then again, I've never tried using it on a Windows 7 64 bit machine, using 32 bit classic asp.</p>
  
  <p>Does anyone have any ideas?</p>
  
  <p>Thanks, all.</p>
  
  <p>PS: I get the error on the create object for CDONTS.NewMail</p>