CDONTS Issue

Discussion in 'ASP General' started by Eddie Price, Aug 24, 2005.

  1. Eddie Price

    Eddie Price Guest

    I have a web database that just keeps users info for clients
    uploading/downloading files. Whenever someone uploads a new file this
    script sends out an email to notify the company. Script only works for a
    short time once I change my email adddress, then just stops. Can't
    figure it out, any help would be great.

    Function SendMail(EmailComponent, RemoteHost, SenderAddress, SenderName,
    RecipientAddress, RecipientName, strSubject, strBody, isHTML)

    if SenderName = "" then SenderName = SenderAddress
    if RecipientName = "" then RecipientName = RecipientAddress
    IF EmailComponent = "CDONTS" THEN
    Set mailObj = Server.CreateObject("CDONTS.NewMail")
    mailObj.From = SenderAddress
    mailObj.To = RecipientName
    mailObj.Subject = strSubject
    mailObj.Body = strBody
    mailObj.BodyFormat = 0
    mailObj.MailFormat = 0
    mailObj.Send
    Eddie Price, Aug 24, 2005
    #1
    1. Advertising

  2. (a) stop using CDONTS, use CDO.Message!
    http://www.aspfaq.com/2026

    (b) you need to narrow down what "stops" means.

    Does the script return an error? If so, what is it?

    Does the script have on error resume next, encounter an error silently, and
    keep running? (hint: remove on error resume next)

    Is it your e-mail address only? Have you tried other accounts at the same
    domain, and other domains entirely (e.g. hotmail)?
    http://www.aspfaq.com/2511

    Does the mail get stuck in the queue or pickup folder? Have you looked
    there?
    http://www.aspfaq.com/2268

    Does the mail end up in the badmail folder? Have you looked there?
    http://www.aspfaq.com/2254

    Have you tried both local and remote SMTP modes?
    http://www.aspfaq.com/2339



    "Eddie Price" <> wrote in message
    news:...
    >I have a web database that just keeps users info for clients
    >uploading/downloading files. Whenever someone uploads a new file this
    >script sends out an email to notify the company. Script only works for a
    >short time once I change my email adddress, then just stops. Can't figure
    >it out, any help would be great.
    >
    > Function SendMail(EmailComponent, RemoteHost, SenderAddress, SenderName,
    > RecipientAddress, RecipientName, strSubject, strBody, isHTML)
    >
    > if SenderName = "" then SenderName = SenderAddress
    > if RecipientName = "" then RecipientName = RecipientAddress
    > IF EmailComponent = "CDONTS" THEN
    > Set mailObj = Server.CreateObject("CDONTS.NewMail")
    > mailObj.From = SenderAddress
    > mailObj.To = RecipientName
    > mailObj.Subject = strSubject
    > mailObj.Body = strBody
    > mailObj.BodyFormat = 0
    > mailObj.MailFormat = 0
    > mailObj.Send
    Aaron Bertrand [SQL Server MVP], Aug 24, 2005
    #2
    1. Advertising

  3. Eddie Price

    Eddie Price Guest

    "Stops" meaning the emails are not sent, sorry bout that =) As far as
    errors, there are none and no idea about the error resume. Will check
    out CDO.Message tonite=P


    Aaron Bertrand [SQL Server MVP] wrote:
    > (a) stop using CDONTS, use CDO.Message!
    > http://www.aspfaq.com/2026
    >
    > (b) you need to narrow down what "stops" means.
    >
    > Does the script return an error? If so, what is it?
    >
    > Does the script have on error resume next, encounter an error silently, and
    > keep running? (hint: remove on error resume next)
    >
    > Is it your e-mail address only? Have you tried other accounts at the same
    > domain, and other domains entirely (e.g. hotmail)?
    > http://www.aspfaq.com/2511
    >
    > Does the mail get stuck in the queue or pickup folder? Have you looked
    > there?
    > http://www.aspfaq.com/2268
    >
    > Does the mail end up in the badmail folder? Have you looked there?
    > http://www.aspfaq.com/2254
    >
    > Have you tried both local and remote SMTP modes?
    > http://www.aspfaq.com/2339
    >
    >
    >
    > "Eddie Price" <> wrote in message
    > news:...
    >
    >>I have a web database that just keeps users info for clients
    >>uploading/downloading files. Whenever someone uploads a new file this
    >>script sends out an email to notify the company. Script only works for a
    >>short time once I change my email adddress, then just stops. Can't figure
    >>it out, any help would be great.
    >>
    >>Function SendMail(EmailComponent, RemoteHost, SenderAddress, SenderName,
    >>RecipientAddress, RecipientName, strSubject, strBody, isHTML)
    >>
    >>if SenderName = "" then SenderName = SenderAddress
    >>if RecipientName = "" then RecipientName = RecipientAddress
    >>IF EmailComponent = "CDONTS" THEN
    >>Set mailObj = Server.CreateObject("CDONTS.NewMail")
    >>mailObj.From = SenderAddress
    >>mailObj.To = RecipientName
    >>mailObj.Subject = strSubject
    >>mailObj.Body = strBody
    >>mailObj.BodyFormat = 0
    >>mailObj.MailFormat = 0
    >>mailObj.Send

    >
    >
    >
    Eddie Price, Aug 24, 2005
    #3
  4. > "Stops" meaning the emails are not sent,

    Yes, but you need to determine WHERE they stop. Are they in the
    queue/pickup/badmail folder? Are they stuck in the smtp server?
    Aaron Bertrand [SQL Server MVP], Aug 24, 2005
    #4
    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. eddie wang

    CDONTS object missing

    eddie wang, Jul 23, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    705
    Salim Afsar
    Jul 25, 2003
  2. Chris Pearson
    Replies:
    2
    Views:
    436
    Kevin Spencer
    Jul 28, 2003
  3. BaWork

    Sending CDONTS HTML email issue

    BaWork, Mar 23, 2005, in forum: ASP General
    Replies:
    5
    Views:
    233
    Adrienne
    Mar 26, 2005
  4. James

    CDONTS issue (SMS)

    James, May 25, 2005, in forum: ASP General
    Replies:
    8
    Views:
    141
    Kyle Peterson
    May 26, 2005
  5. TWB
    Replies:
    1
    Views:
    191
    Adrienne Boswell
    May 7, 2009
Loading...

Share This Page