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

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -