我想发送多个电子邮件地址。 我需要做什么。请遵循以下代码。
const string From = new System.Net.Mail.MailAddress(test@test.com, "<testFrom>");
const string To = new System.Net.Mail.MailAddress("test@test.com, "<testTo>");
using (var message = new System.Net.Mail.MailMessage(From, To)
{
Subject = subject,
Body = body
})
smtp.Send(message);