Receiving error when using CDO.Message for ListServ.

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?
Richard ComitoDirector of ITAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nishikanthCommented:
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."mail.mycompany.com" and off you go :)

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

check this link

http://www.systemwebmail.com/faq/4.2.3.aspx
0
Richard ComitoDirector of ITAuthor Commented:
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.
0
nishikanthCommented:
u mean to say the error gets after some email has been sent.

you are able to receive part of the emails.

check this

http://www.vbcity.com/forums/topic.asp?tid=19228

0
GlomCommented:
Hi,

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

Try
    SmtpMail.Send... /// Throwing Exception
Catch e as Exception
    MessageBox.Show(e.InnerException.InnerException.ToString())
End Try

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

Glom
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Richard ComitoDirector of ITAuthor Commented:
Glom thanks.

It turned out to be a bad email address in  my list.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.