mail.send - dumb question

Ask a Question related to ASP, Design and Development.

  1. #1

    Default mail.send - dumb question

    Ok, I'm 99.9999999999999999999% sure there haven't been any code changes,
    since the date stamps of the code are older than any email 'failures'

    The email piece quit working using the mail.send. If there haven't been any
    changes made to previously working code, where do I look for the problem
    now? I restarted the SMTPservice in IIS. Our real email is hosted
    remotely, I checked with the admin and she said no changes were made, i.e.,
    not blocking port 25 traffic from the gateway.

    I guess this isn't ASP specific, but any ideas how to troubleshoot this?

    TIA!
    Tom


    Tom Petersen Guest

  2. Similar Questions and Discussions

    1. the script hangs up when i try to send mail with attachments using MAIL::Sender...???
      As said in the topic... when i try to send an e-mail message using Mail::Sender the script hangs up before execution of $sender ->...
    2. Dumb, dumb, dumb. Macromedia really fumbled the ball here...
      An entire afternoon wasted only to discover, like several others before me apparently, no small amount of clairvoyance is required to determine the...
    3. Can't send/receive Mail (Apple Mail)
      Somehow, I can't send or receive any E-mails... I'm using apple mail and tried with entourage, too... I also checked user name, password..etc...
    4. Dumb ass question about networking and Mail
      I'm trying to set up two computers running 10.2.6 connected by an ethernet cable. I have the file sharing thing set up ok in as much as I can get...
    5. Send Same E-mail To Multiple E-mail Addresses?
      "Ralph Swanson" <r.swanson@sbcglobal.net> wrote: You need one. First add all the Addresses to your Address Book, then go File > New Group and...
  3. #2

    Default Re: mail.send - dumb question

    What does "quit working" mean? Do you get an error message? If so, what is
    it? Otherwise, what is the symptom? What mail object are you using? What
    is the from / to address? How many To, CC, BCC recipients are there? Are
    you sure the domain of the sender/recipient is allowed in to the mail
    server? Was the SMTP server changed to disallow relaying from all but
    certain IPs? Is the SMTP server set up to require authentication for
    outgoing mail? Are there any SMTP rules that you may be violating?


    "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    news:Oc6MYX0lDHA.2200@TK2MSFTNGP12.phx.gbl...
    > Ok, I'm 99.9999999999999999999% sure there haven't been any code changes,
    > since the date stamps of the code are older than any email 'failures'
    >
    > The email piece quit working using the mail.send. If there haven't been
    any
    > changes made to previously working code, where do I look for the problem
    > now? I restarted the SMTPservice in IIS. Our real email is hosted
    > remotely, I checked with the admin and she said no changes were made,
    i.e.,
    > not blocking port 25 traffic from the gateway.
    >
    > I guess this isn't ASP specific, but any ideas how to troubleshoot this?
    >
    > TIA!
    > Tom
    >
    >

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: mail.send - dumb question

    This is part of the message in my C:\Inetpub\mailroot\Badmail folder

    Reporting-MTA: dns;sd-school
    Received-From-MTA: dns;sd-school
    Arrival-Date: Mon, 20 Oct 2003 14:51:02 -0500

    Final-Recipient: rfc822;petert@sdsd.sdbor.edu
    Action: failed
    Status: 5.0.0

    The email address is valid. I don't get any error messages except for the
    above in the folder.

    Code snippet:
    Set Mail=Server.CreateObject("CDONTS.NewMail")
    Mail.To="donald.moore@sdsd.sdbor.edu"
    Mail.CC= strmEmail
    Mail.From= strEmail
    Mail.Subject="Maintenance Request"
    Mail.Body= strBody
    Mail.Send
    Set Mail=nothing
    If I do a response.write on all of the variables, they all display
    correctly. I have additional code that puts all of this, plus additional
    info into a simple access database, all of that info is correct when I view
    it.
    One To, one CC.

    I did not make any changes to the SMTP server. ( I didn't uninstall and
    reinstall yet, I may do that next)
    No authentication
    No rule violations
    All of the SMTP settings are set to Anonymous

    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:%23vKHee0lDHA.976@tk2msftngp13.phx.gbl...
    > What does "quit working" mean? Do you get an error message? If so, what
    is
    > it? Otherwise, what is the symptom? What mail object are you using?
    What
    > is the from / to address? How many To, CC, BCC recipients are there? Are
    > you sure the domain of the sender/recipient is allowed in to the mail
    > server? Was the SMTP server changed to disallow relaying from all but
    > certain IPs? Is the SMTP server set up to require authentication for
    > outgoing mail? Are there any SMTP rules that you may be violating?
    >
    >
    > "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    > news:Oc6MYX0lDHA.2200@TK2MSFTNGP12.phx.gbl...
    > > Ok, I'm 99.9999999999999999999% sure there haven't been any code
    changes,
    > > since the date stamps of the code are older than any email 'failures'
    > >
    > > The email piece quit working using the mail.send. If there haven't been
    > any
    > > changes made to previously working code, where do I look for the problem
    > > now? I restarted the SMTPservice in IIS. Our real email is hosted
    > > remotely, I checked with the admin and she said no changes were made,
    > i.e.,
    > > not blocking port 25 traffic from the gateway.
    > >
    > > I guess this isn't ASP specific, but any ideas how to troubleshoot this?
    > >
    > > TIA!
    > > Tom
    > >
    > >
    >
    >

    Tom Petersen Guest

  5. #4

    Default Re: mail.send - dumb question

    Use CDO.Message instead of CDONTS (see [url]http://www.aspfaq.com/2026[/url]), and send
    the message to an actual SMTP server (that you can debug) instead of using
    the local SMTP service. Also see [url]http://www.aspfaq.com/2254[/url] and
    [url]http://www.aspfaq.com/2372[/url]




    "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    news:O113Eo0lDHA.392@TK2MSFTNGP11.phx.gbl...
    > This is part of the message in my C:\Inetpub\mailroot\Badmail folder
    >
    > Reporting-MTA: dns;sd-school
    > Received-From-MTA: dns;sd-school
    > Arrival-Date: Mon, 20 Oct 2003 14:51:02 -0500
    >
    > Final-Recipient: rfc822;petert@sdsd.sdbor.edu
    > Action: failed
    > Status: 5.0.0
    >
    > The email address is valid. I don't get any error messages except for the
    > above in the folder.
    >
    > Code snippet:
    > Set Mail=Server.CreateObject("CDONTS.NewMail")
    > Mail.To="donald.moore@sdsd.sdbor.edu"
    > Mail.CC= strmEmail
    > Mail.From= strEmail
    > Mail.Subject="Maintenance Request"
    > Mail.Body= strBody
    > Mail.Send
    > Set Mail=nothing
    > If I do a response.write on all of the variables, they all display
    > correctly. I have additional code that puts all of this, plus additional
    > info into a simple access database, all of that info is correct when I
    view
    > it.
    > One To, one CC.
    >
    > I did not make any changes to the SMTP server. ( I didn't uninstall and
    > reinstall yet, I may do that next)
    > No authentication
    > No rule violations
    > All of the SMTP settings are set to Anonymous
    >
    > "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    > news:%23vKHee0lDHA.976@tk2msftngp13.phx.gbl...
    > > What does "quit working" mean? Do you get an error message? If so,
    what
    > is
    > > it? Otherwise, what is the symptom? What mail object are you using?
    > What
    > > is the from / to address? How many To, CC, BCC recipients are there?
    Are
    > > you sure the domain of the sender/recipient is allowed in to the mail
    > > server? Was the SMTP server changed to disallow relaying from all but
    > > certain IPs? Is the SMTP server set up to require authentication for
    > > outgoing mail? Are there any SMTP rules that you may be violating?
    > >
    > >
    > > "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    > > news:Oc6MYX0lDHA.2200@TK2MSFTNGP12.phx.gbl...
    > > > Ok, I'm 99.9999999999999999999% sure there haven't been any code
    > changes,
    > > > since the date stamps of the code are older than any email 'failures'
    > > >
    > > > The email piece quit working using the mail.send. If there haven't
    been
    > > any
    > > > changes made to previously working code, where do I look for the
    problem
    > > > now? I restarted the SMTPservice in IIS. Our real email is hosted
    > > > remotely, I checked with the admin and she said no changes were made,
    > > i.e.,
    > > > not blocking port 25 traffic from the gateway.
    > > >
    > > > I guess this isn't ASP specific, but any ideas how to troubleshoot
    this?
    > > >
    > > > TIA!
    > > > Tom
    > > >
    > > >
    > >
    > >
    >
    >

    Aaron Bertrand - MVP Guest

  6. #5

    Default Re: mail.send - dumb question

    Thanks, the code from 2026 worked. Not sure why the other quit working, but
    I won't worry about that for now.

    <!--METADATA TYPE="typelib"
    UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
    NAME="CDO for Windows 2000 Library" -->

    <%
    Set cdoConfig = Server.CreateObject("CDO.Configuration")

    With cdoConfig.Fields
    .Item(cdoSendUsingMethod) = cdoSendUsingPort
    .Item(cdoSMTPServer) = "<enter_mail.server_here>"
    .Update
    End With

    Set cdoMessage = Server.CreateObject("CDO.Message")

    With cdoMessage
    Set .Configuration = cdoConfig
    .From = "from@me.com"
    .To = "to@me.com"
    .Subject = "Sample CDO Message"
    .TextBody = "This is a test for CDO.message"
    .Send
    End With

    Set cdoMessage = Nothing
    Set cdoConfig = Nothing
    %>


    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:%23U9UIr0lDHA.2160@TK2MSFTNGP10.phx.gbl...
    > Use CDO.Message instead of CDONTS (see [url]http://www.aspfaq.com/2026[/url]), and
    send
    > the message to an actual SMTP server (that you can debug) instead of using
    > the local SMTP service. Also see [url]http://www.aspfaq.com/2254[/url] and
    > [url]http://www.aspfaq.com/2372[/url]
    >
    >
    >
    >
    > "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    > news:O113Eo0lDHA.392@TK2MSFTNGP11.phx.gbl...
    > > This is part of the message in my C:\Inetpub\mailroot\Badmail folder
    > >
    > > Reporting-MTA: dns;sd-school
    > > Received-From-MTA: dns;sd-school
    > > Arrival-Date: Mon, 20 Oct 2003 14:51:02 -0500
    > >
    > > Final-Recipient: rfc822;petert@sdsd.sdbor.edu
    > > Action: failed
    > > Status: 5.0.0
    > >
    > > The email address is valid. I don't get any error messages except for
    the
    > > above in the folder.
    > >
    > > Code snippet:
    > > Set Mail=Server.CreateObject("CDONTS.NewMail")
    > > Mail.To="donald.moore@sdsd.sdbor.edu"
    > > Mail.CC= strmEmail
    > > Mail.From= strEmail
    > > Mail.Subject="Maintenance Request"
    > > Mail.Body= strBody
    > > Mail.Send
    > > Set Mail=nothing
    > > If I do a response.write on all of the variables, they all display
    > > correctly. I have additional code that puts all of this, plus
    additional
    > > info into a simple access database, all of that info is correct when I
    > view
    > > it.
    > > One To, one CC.
    > >
    > > I did not make any changes to the SMTP server. ( I didn't uninstall and
    > > reinstall yet, I may do that next)
    > > No authentication
    > > No rule violations
    > > All of the SMTP settings are set to Anonymous
    > >

    Tom Petersen Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139