首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >outlook邮件对象bcc

outlook邮件对象bcc
EN

Stack Overflow用户
提问于 2013-12-19 14:01:48
回答 1查看 695关注 0票数 1
代码语言:javascript
复制
//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字段中的当前进程?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-12-19 14:05:44

代码语言:javascript
复制
Outlook.Recipient recipBcc =
        mail.Recipients.Add(Recipients.GetString(8));
recipBcc.Type = (int)Outlook.OlMailRecipientType.olBCC;

检查OlMailRecipientType枚举

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20683691

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档