Monday, March 12, 2012

Web Email

I have been using the Web Email facility in asp.net. I have used it
successfully many times. This time I am sending the same email to several
users so I construct the string of email addresses for the To field.
Sometimes it is successful and sometimes it fails.

Has anyone had this experience?

JayWhat specific error do you get when it fails?

"Jay" <AreYouKidding@.microsoft.com>
>I have been using the Web Email facility in asp.net. I have used it
> successfully many times. This time I am sending the same email to several
> users so I construct the string of email addresses for the To field.
> Sometimes it is successful and sometimes it fails.
> Has anyone had this experience?
> Jay
I tried again and it is now consistently working. No matter how many people
I selected to send an email to it worked.

I was just wondering if others have had similar difficulties, or if there
are constraints on the size of email, etc. The emails I am sending are HTML
and 30 or so lines of text.

Jay

"JV" <johnNOSPAMme@.goisc.com> wrote in message
news:uLpnU0tOFHA.3512@.TK2MSFTNGP15.phx.gbl...
> What specific error do you get when it fails?
> "Jay" <AreYouKidding@.microsoft.com>
> >I have been using the Web Email facility in asp.net. I have used it
> > successfully many times. This time I am sending the same email to
several
> > users so I construct the string of email addresses for the To field.
> > Sometimes it is successful and sometimes it fails.
> > Has anyone had this experience?
> > Jay
This is the code I am using. It works some of the time.

Try
SmtpMail.Send(eMail)
Catch ex as Exception
Dim msg1 as String = ex.message
Dim msg1 as String = exInnerException.Message
EventLog.Insert ("SendEmail", msg1 + " InnerException: " + msg2
End Try

EventLog stores error in database.

The error is:
Could not access 'CDO.Message' object. InnerException: Exception has been
thrown by the target of an invocation.

Thanks for you help

"JV" <johnNOSPAMme@.goisc.com> wrote in message
news:uLpnU0tOFHA.3512@.TK2MSFTNGP15.phx.gbl...
> What specific error do you get when it fails?
> "Jay" <AreYouKidding@.microsoft.com>
> >I have been using the Web Email facility in asp.net. I have used it
> > successfully many times. This time I am sending the same email to
several
> > users so I construct the string of email addresses for the To field.
> > Sometimes it is successful and sometimes it fails.
> > Has anyone had this experience?
> > Jay

0 comments:

Post a Comment