Posted on: 7/30/2012 9:16:12 PM | Views : 254

hi all
I know this has been asked many times already, but I cannot find a solution to my problem. I have the following code. It runs without any errors, as far I can tell, but does not seem to actually send the email. I am not sure what I am missing.
try { MailAddress fromAddress = new MailAddress("from@gmail.com", "From Name"); MailAddress toAddress = new MailAddress("ToEmail@gmail.com", "To Name"); const string fromPassword = "password"; const string subject = "CleanColon.me Appointment Confirmation"; string body = "This email is to confirm your appointment at CleanColon.me for " + _emailInformation.AppointmentDay + " at " + _emailInformation.AppointmentTime; SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587); smtp.EnableSsl = true; smtp.DeliveryMethod = SmtpDeliveryMethod.Netwo ...

Go to the complete details ...