I can\'t understand why this code is not working. I get an error saying property can not be assigned
MailMessage mail = new MailMessage(); SmtpClient client
This :
mail.To = "user@hotmail.com";
Should be:
mail.To.Add(new MailAddress("user@hotmail.com"));