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" <jo**********@goisc.com> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl...
What specific error do you get when it fails?
"Jay" <Ar***********@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