Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@harbhub
Last active December 23, 2015 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harbhub/6686897 to your computer and use it in GitHub Desktop.
Save harbhub/6686897 to your computer and use it in GitHub Desktop.
//Step One: I already have this string, which I retrieved from the SQL database
string listOfRecipients = "abc@some.com,john@doe.net";
//Step Two
Array arrayOfRecipients = listOfRecipients.Split(",");
//Step Three
int i = 0;
//Somehow I need to get this:
/*
MailMessage message = new MailMessage(
"abc@some.com",
"john@doe.net");
*/
for (i = 0; i < arrayOfRecipients.length; ++i) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment