//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));
}有谁知道我如何才能将电子邮件地址插入bcc而不是to字段中的当前进程?
发布于 2013-12-19 14:05:44
Outlook.Recipient recipBcc =
mail.Recipients.Add(Recipients.GetString(8));
recipBcc.Type = (int)Outlook.OlMailRecipientType.olBCC;检查OlMailRecipientType枚举
https://stackoverflow.com/questions/20683691
复制相似问题