C# code to get list item to send to email? -
C# code to get list item to send to email? -
i can send emails using this:
mail.to.add("sample@test.com");
however, i'd send out emails getting sharepoint list, far have this.
list<string> = new list<string> {"test@sample.com"}; foreach(string address in to) { mail.to.add("to"); }
i'm getting error.
the specified string not in form required e-mail address.
try:
list<string> = new list<string> {"test@sample.com"}; foreach(string address in to) { mail.to.add(address); }
c# list email sharepoint
Comments
Post a Comment