• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

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?
0
Richard Comito
Asked:
Richard Comito
  • 2
  • 2
1 Solution
 
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
 
Richard ComitoDirector of ITAuthor Commented:
Glom thanks.

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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now