Free Support Forum -

BCC Information is not being captured in ExchangeMessageInfo object

Greetings, I am using the following method to fetch all the details from a mail after reading from a mailbox:

foreach (ExchangeMessageInfo msgInfo in messages)
	//Extract each email
	EmailObjectModel data = new EmailObjectModel();
	data.MessageInfo = msgInfo;
	data.From = msgInfo.From.Address.ToString();
	data.To = msgInfo.To.Select(a => a.Address).ToList();

	//To handle subject length issue
	data.Subject = msgInfo.Subject.Substring(0, msgInfo.Subject.Length > 255 ? 255 : msgInfo.Subject.Length);
	//BCC coming empty even though if it isn't
	data.BCC = Helper.ConcatListToString(msgInfo.Bcc.Select(a => a.Address).ToList());
	data.Mailbox = mailbox;
	data.ReceivedDate = msgInfo.InternalDate;
	data.mailURI = msgInfo.UniqueUri;
	data.client = client;

But the Bcc field in the msgInfo object always shows 0 even if there is BCC present in the mail. Is there something I can do to fix this?

I saw a similar question here and it was said that it is fixed, but I am having same issue.


Thank you for contacting Aspose Support.
Please try the code snippet given below to fetch Bcc Email Address.

foreach (ExchangeMessageInfo msgInfo in messages)
    MailMessage mailMessage = client.FetchMessage(msgInfo.UniqueUri);
    Console.WriteLine("Bcc: " + mailMessage.Bcc);

We hope that this solved the issue that you were facing. If the issue still persists, please share the sample email file. We will investigate this scenario further and update you accordingly.