SMTP Problems

Discussion in 'ASP .Net' started by Poppy, Feb 5, 2004.

  1. Poppy

    Poppy Guest

    I am trying to send a mail message using smtp and I keep getting this error.

    "Error sending mail! System.web.HTTPExeption : Could not access 'CDO Message
    Object'"

    also

    "The server response was 421 4.4.1 fw2.itp.biz, unable to contact
    destination"

    I think the above refers to the firewall but I do not understand anything
    about firewalls.
    When I run the code on my development machine it works great.

    The SMTP server is set to local host.

    Any Ideas. This is doing my head in and our server guy has no idea.

    Thanks in Advance
     
    Poppy, Feb 5, 2004
    #1
    1. Advertisements

  2. System.Web.Mail is actually a wrapper around the COM dlls CDOSys.dll and CDONTS.dll. So, all programming exceptions are actually COM exceptions and are usually generated because there is either a problem accessing the CDOSys.dll or CDONTS.dll, or else these dlls are not installed.

    The most helpful way to check which type of exception is being thrown is to ITERATE THROUGH ALL INNER EXCEPTIONS. I CANNOT STRESS THIS STRONGLY ENOUGH!! 99% of the time, System.Web.Mail throws the "Could Not Access CDO.Message" exception. This message is not too helpful, however, by checking the Exception.InnerException, some additional helpful text is usually found that will shorten your troubleshooting time CONSIDERABLY.

    A very good post at http://www.systemwebmail.com/faq/4.2.3.aspx gives a good insight into the problem

    Hope this help
    Avnees
     
    =?Utf-8?B?QXZuZWVzaA==?=, Feb 5, 2004
    #2
    1. Advertisements

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. michi

    SMTP sending problems

    michi, Jan 23, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    462
    michi
    Jan 23, 2004
  2. Srinivas

    SMTP Email problems

    Srinivas, Apr 25, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    631
    Wysiwyg
    Apr 26, 2005
  3. D. Shane Fowlkes

    SMTP Problems on server with McAfee VirusScan 8.0

    D. Shane Fowlkes, May 11, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,805
    =?Utf-8?B?Sm9uIEVkbmV5?=
    Sep 8, 2005
  4. Replies:
    3
    Views:
    1,310
    Roedy Green
    Jan 24, 2006
  5. Alex Hunsley
    Replies:
    4
    Views:
    4,400
    Tim Williams (gmail)
    Jun 29, 2004
  6. Copelandia Cyanescens

    smtplib.SMTP "no attributes SMTP"

    Copelandia Cyanescens, Jul 31, 2004, in forum: Python
    Replies:
    2
    Views:
    2,109
    Copelandia Cyanescens
    Jul 31, 2004
  7. Karl Ehr
    Replies:
    2
    Views:
    2,409
    Karl Ehr
    Aug 5, 2004
  8. tshad
    Replies:
    1
    Views:
    1,066
    bruce barker
    May 5, 2008
Loading...