MailMessageBcc Property |
Namespace: MailBee.Mime
Exception | Condition |
---|---|
MailBeeInvalidArgumentException | value is a null reference (Nothing in Visual Basic). |
To specify it as a string, set msg.Bcc.AsString value (assuming msg is MailMessage instance). Thus you can construct a list of BCC recipients as a string delimited with comma or semicolon.
Although the message is sent to all recipients which are set in Bcc property, BCC field will not be included in the message header unless MailMessage.Builder.RemoveBccOnSend property is set to false.using System; using MailBee.Mime; using MailBee.Pop3Mail; class Sample { static void Main(string[] args) { // Quickly download the first message from the specified POP3 account MailMessage msg = Pop3.QuickDownloadMessage("pop3.mail.com", "dan_brown", "password", 1); Console.WriteLine("The list of BCC recipients of the message:"); // For each BCC recipient... foreach (EmailAddress adr in msg.Bcc) { // ...show its e-mail address. Console.WriteLine(adr.Email); } } }