使用ASP.NET C#中的SMTPClient类发送电子邮件时,如何在邮件中添加密件抄送?如何将密件抄送添加到MailMessage实例?
最佳答案
MailAddress addressTo = new MailAddress("[email protected]");
MailAddress addressFrom = new MailAddress("[email protected]");
MailAddress addressBCC = new MailAddress("[email protected]");
MailMessage MyMessage = new MailMessage(addressFrom, addressTo );
MyMessage.Bcc.Add(addressBCC);
关于c# - 将密件抄送添加到使用.NET SmtpClient发送的电子邮件中?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2474472/