mail.To.Add(mails);
canot convert from 'System.Collection.Generic.List<Model>' to 'string'
<pre> var email =HomeworkReposities.get_studentdetails(classId, divisionId, subjectId); string mails =email.ToString(); string SMTP_HOST = "smtp.sendgrid.net"; string SMTP_PORT = "587"; try { System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(mails);
email
HomeworkReposities.get_studentdetails(classId, divisionId, subjectId);
System.Collections.Generic.List
ToString
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)