CDONTS problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: CDONTS problem

  1. #1
    masi Guest

    CDONTS problem


    i am trying to create an email page using vbscript's cdonts on an asp page
    i am running iis and i get this error :
    Error Type:
    Microsoft VBScript runtime (0x800A0046)
    Permission denied
    /vb/email.asp, line 9

    now i made sure that my server was set to run asp pages, and i dont understand
    why it says accessed denied. the line 9 it refers to is where there is my
    myMail.send() . i used -> Set myMail = CreateObject("CDONTS.NewMail")

    any help would be appreciated, i dont understand why it says access denied

    thanx, masi

  2. #2
    Michael Guest

    Re: CDONTS problem


    Masi,
    Assuming the CDO component is installed on the server since you didnt get
    an object error, What did you set your mail properties to?
    myMail.FROM
    myMail.TO
    etc.

    These properties need values. It needs a FROM address and if you dont set
    the TO address then you need to pass the TO address as an argument to the
    send() method of your myMail object.
    If you still have trouble paste your code from createObject() to myMail.send
    here.

    Good luck and let me know if you have questions,

    Michael
    Runtime Web Development
    San Diego

    "masi" <webdev.@127.0.0.1> wrote:
    >
    >i am trying to create an email page using vbscript's cdonts on an asp page
    >i am running iis and i get this error :
    >Error Type:
    >Microsoft VBScript runtime (0x800A0046)
    >Permission denied
    >/vb/email.asp, line 9
    >
    >now i made sure that my server was set to run asp pages, and i dont understand
    >why it says accessed denied. the line 9 it refers to is where there is my
    >myMail.send() . i used -> Set myMail = CreateObject("CDONTS.NewMail")
    >
    >any help would be appreciated, i dont understand why it says access denied
    >
    >thanx, masi



  3. #3
    Paul Clement Guest

    Re: CDONTS problem

    On 2 Jan 2003 23:41:18 -0800, "masi" <webdev.@127.0.0.1> wrote:


    i am trying to create an email page using vbscript's cdonts on an asp page
    i am running iis and i get this error :
    Error Type:
    Microsoft VBScript runtime (0x800A0046)
    Permission denied
    /vb/email.asp, line 9

    now i made sure that my server was set to run asp pages, and i dont understand
    why it says accessed denied. the line 9 it refers to is where there is my
    myMail.send() . i used -> Set myMail = CreateObject("CDONTS.NewMail")

    any help would be appreciated, i dont understand why it says access denied

    See the following MS KB article:

    PRB: Permission Denied While Using CDONTS to Send Mail with Exchange
    http://support.microsoft.com/default...;en-us;Q228465


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center