C# outlook邮件对象密件抄送
有人知道我如何将电子邮件地址插入密件抄送,而不是“收件人”字段中的当前流程吗C# outlook邮件对象密件抄送,c#,outlook,C#,Outlook,有人知道我如何将电子邮件地址插入密件抄送,而不是“收件人”字段中的当前流程吗 //Create the session. Outlook.Application application = new Outlook.Application(); //Create the session. Outlook.MailItem mail = application.CreateItem(Outlook.OlItemType.olMailItem) as O
//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 = "user@email.com";
mail.Recipients.Add(Recipients.GetString(8));
}
检查我试图立即接受,但在接受之前,您需要等待5-10分钟:)
Outlook.Recipient recipBcc =
mail.Recipients.Add(Recipients.GetString(8));
recipBcc.Type = (int)Outlook.OlMailRecipientType.olBCC;