CDONTS issue - Not Working after server migration

Discussion in 'ASP General' started by TWB, May 6, 2009.

  1. TWB

    TWB Guest

    Hi All.

    I've got an asp page using CDONTS to send an email. It was working
    fine until Godaddy migrated me to a different server. I want to be
    clear, I am quite sure the script is OK (but I'll put it at the end of
    the post just in case), there are no error messages and the redirect
    works like a charm. The issue is that the email does not appear to be
    getting sent. We've tested numerous email addresses, but they are all
    in working order.

    Godaddy says that CDONTS is working on their server, so they don't
    know what it is.

    Let's assume that the form and asp page are working. My exchange
    server is working as well. CDONTS is working on the server. What
    could possibly be causing this issue.

    They were talking about domain A records and MX records, but
    everything was working just fine until they migrated me to this
    server.

    Any experts got ideas?????????????????

    Sample ASP Page Code. This is the only code in the file. Is it
    missing anything?
    -------------------------------------------------------------------------------------------------------------------
    <%@ Language="VBSCRIPT" %>
    <%
    dim from
    dim body
    dim subject

    from = request.form("from")
    body = request.form("comments")
    subject = request.form("name")
    %>

    <%
    Dim objMail
    Set objMail = Server.CreateObject("CDONTS.NewMail")
    objMail.From = from
    objMail.Subject = subject
    objMail.To = "myhardcodedemailaddress"
    objMail.Body = body
    objMail.Send

    Set objMail = Nothing
    Response.redirect "thanks.htm" '<- auto-redirection
    'You must always do this with CDONTS.
    'Change the page name to one that exists on your site.
    %>
    TWB, May 6, 2009
    #1
    1. Advertising

  2. Gazing into my crystal ball I observed TWB <>
    writing in
    news::

    > Hi All.
    >
    > I've got an asp page using CDONTS to send an email. It was working
    > fine until Godaddy migrated me to a different server. I want to be
    > clear, I am quite sure the script is OK (but I'll put it at the end of
    > the post just in case), there are no error messages and the redirect
    > works like a charm. The issue is that the email does not appear to be
    > getting sent. We've tested numerous email addresses, but they are all
    > in working order.


    Godaddy is a great registrar, but IMHO, sucks at hosting.

    >
    > Godaddy says that CDONTS is working on their server, so they don't
    > know what it is.


    Make sure the relaying is allowed for the sender. That can sometimes be
    an issue.

    You know you would be better off with CDOSYS, don't you? It's not a big
    deal to change your script to use CDOSYS, and it's better supported.

    >
    > Let's assume that the form and asp page are working. My exchange
    > server is working as well. CDONTS is working on the server. What
    > could possibly be causing this issue.
    >
    > They were talking about domain A records and MX records, but
    > everything was working just fine until they migrated me to this
    > server.


    If they moved you to another server, it probably has a different ip
    address, so the A and MX records could be affected.

    >
    > Any experts got ideas?????????????????
    >
    > Sample ASP Page Code. This is the only code in the file. Is it
    > missing anything?
    > -----------------------------------------------------------------------
    > --------------------------------------------
    ><%@ Language="VBSCRIPT" %>
    ><%
    > dim from
    > dim body
    > dim subject
    >
    > from = request.form("from")
    > body = request.form("comments")
    > subject = request.form("name")
    > %>
    >
    ><%
    > Dim objMail
    > Set objMail = Server.CreateObject("CDONTS.NewMail")
    > objMail.From = from
    > objMail.Subject = subject
    > objMail.To = "myhardcodedemailaddress"
    > objMail.Body = body
    > objMail.Send
    >
    > Set objMail = Nothing
    > Response.redirect "thanks.htm" '<- auto-redirection
    > 'You must always do this with CDONTS.
    > 'Change the page name to one that exists on your site.
    > %>
    >




    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
    Adrienne Boswell, May 7, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    408
    Martin
    May 25, 2005
  2. Gernot Saborowski
    Replies:
    0
    Views:
    83
    Gernot Saborowski
    Jan 8, 2004
  3. M P
    Replies:
    6
    Views:
    183
  4. tshad

    CDONTS not working on W2000 Server

    tshad, Nov 15, 2004, in forum: ASP General
    Replies:
    12
    Views:
    233
    Jeff Cochran
    Nov 16, 2004
  5. Boni Satani
    Replies:
    0
    Views:
    147
    Boni Satani
    Jan 9, 2014
Loading...

Share This Page