CDONTS mail script not working?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • impin
    New Member
    • Jul 2010
    • 127

    #1

    CDONTS mail script not working?

    i am new to asp. please help.

    Code:
    <%
    Dim objCDOMail  
    Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
    objCDOMail.From = "lark.imp@gmail.com"
    objCDOMail.To = "impin@in.com"
    objCDOMail.Subject = "Enquiry sent from my web site"
    objCDOMail.Body = "<h2>Hello</h2><br><b>This is my e-mail in HTML format</b>"
    objCDOMail.Send
    Set objCDOMail = Nothing
    %>
    when run this code i get an error.
    Error
    Code:
    Microsoft VBScript runtime  error '800a0046'
    
    Permission denied
    
    /mail.asp, line 8
    what will be the problem?
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    looks like you don't have permission to send the email.

    Jared

    Comment

    Working...