C#发送邮件并抄送给多个邮件接收者
MailMessage m = new MailMessage(); m.From = new MailAddress("ir@75271.com", "Raja Item"); m.To.Add(new MailAddress("su@75271.com", "Sekaran Uma")); m.To.Add(new MailAddress("mg@75271.com", "Murthy Ganesh")); m.To.Add(new MailAddress("bk@75271.com", "Biryani Kaka")); m.Subject = "Some subject here!"; m.Body = "See the attached file."; // Send the message SmtpClient client = new SmtpClient("smtp.w3mentor.com"); client.Send(m);