MailMessage mailmessage = new MailMessage();
mailmessage.To.Add("接受邮箱");//可以添加多个接收邮箱
mailmessage.From = new MailAddress("发信人地址");
mailmessage.Body = "邮件内容";
mailmessage.Subject = "邮件标题"; SmtpClient smtp = new SmtpClient();
smtp.Host = "这是SMTP比如:smtp.126.com";
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential("发送人地址", "发送密码");
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Send(mailmessage);