C#发送带附件的邮件的代码
2021-06-08 17:03
标签:file sage client mes add txt cli ESS send 如下的代码是关于C#发送带附件的邮件的代码。 MailMessage m = new MailMessage(); C#发送带附件的邮件的代码 标签:file sage client mes add txt cli ESS send 原文地址:https://www.cnblogs.com/lpypg/p/10689429.html
m.Subject = "File attachment!";
m.Body = "See the attached file.";
m.Attachments.Add(new Attachment(@"C:test.txt"));
SmtpClient client = new SmtpClient("smtp.w3mentor.com");
client.Send(m);
上一篇:关于在WIN10系统中邮箱的应用