Exemplo n.º 1
0
        private static void AddExchangeOrganizationBccHeader(List <MimeRecipient> bccRecipientList, TransportMailItem mailItem)
        {
            AddressHeader addressHeader = new AddressHeader("X-MS-Exchange-Organization-BCC");

            foreach (MimeRecipient newChild in bccRecipientList)
            {
                addressHeader.AppendChild(newChild);
            }
            HeaderList headers = mailItem.Message.MimeDocument.RootPart.Headers;

            headers.AppendChild(addressHeader);
        }
Exemplo n.º 2
0
        internal void WriteMailBox(string displayName, string address)
        {
            if (this.hasAllHeaders)
            {
                return;
            }
            if (address == null)
            {
                address = string.Empty;
            }
            AddressHeader addressHeader = (AddressHeader)this.currentHeader;
            MimeRecipient newChild      = new MimeRecipient(displayName, address);

            addressHeader.AppendChild(newChild);
        }