代码如下:/// /// NetMail方式测试通过 /// private void TestSend() { System.Net.Mail.MailMessage mm = new System.Net.Mail.MailMessage(); //收件人地址 mm.To.Add(new System.Net.Mail.MailAddress(“xxxxxx@163.com”, “Name”)); //发件人地址 mm.From = new System.