I am having problems setting the BCC field in Outlook 2010. This is my situation (using Microsoft.Office.Interop.Outlook):
string bcc = "[email protected]";
Recipient recipient = mailItem.Recipients.Add(bcc); // Add the recipient address
recipient.Type = (int)OlMailRecipientType.olBCC; // Set the type to BCC
mailItem.Display(false); // Display the email in Outlook
string addedBCC = mailItem.BCC; // Check that the BCC property gets set
This works fine in outlook 2007, but in Outlook 2010 the address appears in the "To" field instead of the "BCC" field. The variable addedBCC contains the same text as bcc. Am I doing something wrong here?
The actual problem was that when adding several recipients with different types, the last recipient added would always end up in the TO field when displaying the compose window in outlook 2010.