2013-12-19 46 views
1
//Create the session. 
Outlook.Application application = new Outlook.Application(); 
//Create the session.       
Outlook.MailItem mail = application.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem; 
//create the receipents object 
Outlook.Recipients objOutlookRecip = mail.Recipients; 

while (Recipients.Read()) 
{ 
    mail.Subject = Confirmations.GetString(2); 
    mail.Body = Confirmations.GetString(4) + ("\r\n");   
    mail.Body = mail.Body + ("\r\n") + Confirmations.GetString(5) +  ("\r\n"); 
    mail.Body = mail.Body + ("\r\n") + Confirmations.GetString(6); 
    mail.SentOnBehalfOfName = "[email protected]"; 
    mail.Recipients.Add(Recipients.GetString(8)); 
} 

有誰知道我怎麼可能能夠插入的電子郵件地址爲BCC,而不是當前的進程中,以現場Outlook郵件對象BCC

回答

1
Outlook.Recipient recipBcc = 
     mail.Recipients.Add(Recipients.GetString(8)); 
recipBcc.Type = (int)Outlook.OlMailRecipientType.olBCC; 

檢查OlMailRecipientType Enumeration

+1

太感謝了。快樂的聖誕 –

+2

我試圖接受它,但有一個5 - 10分鐘你必須等待,然後再接受:) –