Author: bhughes_1231 | Posted on: 5/4/2010 6:51:13 PM | Views : 480

 I have code that looks for changes in a master record and then sends email to all users connected with that master record.  My problem is I cannot figure out how to implement error handeling.  When I try to implement SmtpFailedRecipientException code it breaks.  Please help.
Public Shared Sub ProcessActivityEmail() Dim ds As DataSet = GetUserListForEmail() Dim ds2 As DataSet If ds.Tables.Count > 0 Then Dim mm As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage() Dim smtpClient As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient() Dim body As String = "" Dim group As String = "" 'Dim fromaddress As String = ConfigurationManager.AppSettings("ServerSendAddress").ToString For Each dr As DataRow In ds.Tables(0).Rows ds2 = GetLimitedActivityListForU ...

Go to the complete details ...