Posted on: 5/21/2014 4:08:16 PM | Views : 344

I have an error at:
newMail.SendMail(email.Value, Subject.Text, Body.Text) Can you help?  Much thanks!
Try Dim newMail As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage() newMail.From = New System.Net.Mail.MailAddress(System.Configuration.ConfigurationManager.AppSettings("fromEmailAddress")) 'foreach (MembershipUser member in Membership.GetAllUsers()) For Each email As ListItem In CheckBoxList1.Items 'Send an email to approved users ONLY 'if (member.IsApproved) If email.Selected Then 'newMail.SendMail(new[] { member.Email }, txtSubject.Text, ftbBody.Text); newMail.SendMail(email.Value, Subject.Text, Body.Text) End If Next 'lblResults.Text = "Your message has been sent successfully.&q ...

Go to the complete details ...