Not able to send email using CDONTS.NEWMAIL in IIS using ASP

Discussion in 'C#' started by vanishree04, Mar 9, 2010.

  1. #1
    Hi All,
    I am Not able to send emails using CDONTS.NEWMAIL .I am able to send it to the external emails like gmail.com, Yahoo.com.But i am not able to send it to my company emails.
    the code is below and its simple.Do we have to do some changes in SMTP server.


    set m = Server.CreateObject("CDONTS.NewMail")
    m.to = reg("s_email")
    m.from = request("email")
    m.subject = request("subj")

    PLeaseeeeeeeee help



    -Vani
     
    vanishree04, Mar 9, 2010 IP
  2. cDc

    cDc Peon

    Messages:
    127
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    cdonts may not be installed on the server.... if its windows 2003 it is not installed by default

    regsvr32 c:\winnt\system32\cdonts.dll will install it
     
    cDc, Apr 18, 2010 IP
  3. ranabra

    ranabra Peon

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    CDONTS is old and not that trustworthy. Why not use newer more reliable methods?
     
    ranabra, Apr 21, 2010 IP