📜  c# 电子邮件发送 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:14.711000             🧑  作者: Mango

代码示例1
string from = "from@microsoft.com";
string to = "to@microsoft.com";
string subject = "UtilMailMessage001";
string body = "UtilMailMessage001 - success";
SmtpMail.SmtpServer = "MyMailServer";
SmtpMail.Send(from, to, subject, body);