When sending email using the SMTPClient class in ASP.NET C#, how can I add bcc to the email? How can I add bcc to a MailMessage instance?
+3
A:
You're looking for the aptly-named Bcc
property:
message.Bcc.Add("[email protected]");
SLaks
2010-03-19 01:39:12
+1
A:
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);
Kelsey
2010-03-19 01:41:23