Results 1 to 5 of 5

Thread: CDONTS.NewMail permission problem

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Hong Kong
    Posts
    62

    Question CDONTS.NewMail permission problem

    I want to test the function of send email through asp. I've installed the SMTP Service and I'm using win2k Server. My asp page is like this:
    Code:
    <%@ language=VBScript %>
    
    <%
    dim mailObj
    
    set mailObj = Server.CreateObject("CDONTS.NewMail")
         mailObj.BodyFormat = 0
         mailObj.MailFormat = 0
         mailObj.From = "[email protected]"
         mailObj.To = "[email protected]"
         mailObj.Subject = "aspmail test!!"
         mailObj.Body = " from Andy Cheung, Is this test alright???"
         response.write "asdlfjaspkljdfas;ldjf"    'for testing only
         mailObj.Send
    set mailObj = nothing
    %>
    but the error message is:
    asdlfjaspkljdfas;ldjf
    Microsoft VBScript Execution Error '800a0046'

    No Permission

    /building/mailtest.asp, Line14
    How can I set the permission of the SMTP Service? Thanks!
    Please Visit My WebCam!!
    http://www.hmcheung.com

  2. #2
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    276
    If i remember right, I had to set the SMART HOST property in the IIS property pages Tabs. I am not sure which tab, though. Do explore on this option. Will get bac to u once i remember the full details.

    - Jemima

  3. #3
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    276
    Got it!
    Go to Microsoft Management Console and select the properties of Default SMTP site in that FIRST tab give your server IP address and go to DELIVERY Tab there you have to give the Exchange server IP Address in SMART HOST.
    Hope this would solve your problem.

    -Jemima.

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Hong Kong
    Posts
    62

    How about no Exchange Server?

    Oh how about if I don't have an Exchange Server on my network? Is it a must that I have one before I can use CDONTS? Thanks...
    Please Visit My WebCam!!
    http://www.hmcheung.com

  5. #5
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    276
    Really sorry. I am not aware of the case u r suggesting. Anyhow check with the SERVER IP of your machine in the FIRST tab and also the Fully Qualified Domain Name in the DELIVERY Tab. Maybe thr is no need for a SMART HOST in this case. Still not sure. MAybe someone else can throw more light here...

    - Jemima.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width