0
我可以使用此发送电子邮件:C#代码获取列表项发送到电子邮件?
mail.To.Add("[email protected]");
不过,我想从一个SharePoint列表得到它发送电子邮件,到目前为止,我有这个。
List<string> to = new List<string> {"[email protected]"};
foreach(string address in to)
{
mail.To.Add("to");
}
我收到一个错误。
The specified string is not in the form required for an e-mail address.
这是一个错误?尝试mail.To.Add(地址);也许你应该进入一些C#基础 – nWorx 2014-10-07 17:46:40