Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想向多个用户发送一封邮件。我已经提取了数据表中所有这些人的电子邮件地址,现在我想知道如何通过邮件将此数据表传递给密件抄送或抄送。
你通过做这样的事情来实现它
MailMessage MyMail = new MailMessage(); MyMail.From = "some email address"; foreach(DataRow row in dataTable1.Rows) { MyMail.To += row["email"] + ";" }