Receiving error when using CDO.Message for ListServ.

Posted on 2004-11-02
Last Modified: 2010-04-24
I have created a listserv that sends out about 22k emails to our weekly email subscribers.  While sending emails i will end up with the followoing error:

An unhandled exception of type 'System.Web.HttpException' occurred in system.web.dll

Additional information: Could not access 'CDO.Message' object.

Am I using the right type of object for sending out so many emails?  And is this error related to the fact that I am sending out so many emails?
Question by:GabicusC
    LVL 8

    Expert Comment

    Have you set the static SmtpServer property of the SmtpMail class?

    You probably have a virtual SMTP server on your local machine but not on the other machines.
    The SmtpServer property defaults to local, but you could set it to ie."" and off you go :)

    check whether or not the SMTP Service is installed and check cdo is registered

    check this link

    Author Comment

    I have set the SmtpServer to relay through a Exchange server that is in the LAN network.  As for the cdo if I did not have it installed would I still be able to send emails?  I was sending out emails when I had to stop becouse I found an error. I was at about 600 emails when I stoped.    When I tried to start up again I got the above error.

     I have norton scanning my emails as they go out.  If I turn off the Norton then my emails are sent real slowlly like about 1 email every 5 sec or so.  The size of the email that I am sending out is about 150 kb.  I built it once then I loop through the emaillist until I get an EOF on the recordset.
    LVL 8

    Expert Comment

    u mean to say the error gets after some email has been sent.

    you are able to receive part of the emails.

    check this

    LVL 4

    Accepted Solution


    Put a Try - Catch directive before your code that throws the exception, like this :

        SmtpMail.Send... /// Throwing Exception
    Catch e as Exception
    End Try

    Now you should see the actual error message, not the generic one, and be able to correct it.


    Author Comment

    Glom thanks.

    It turned out to be a bad email address in  my list.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now