SendUsingAccount在Outlook 2010中不起作用,可能是错误? [英] SendUsingAccount Does Not Work in Outlook 2010, possible bug?

查看:129
本文介绍了SendUsingAccount在Outlook 2010中不起作用,可能是错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在摸不着头脑,但在我看来,Outlook 2010存在一个错误,其中SendUsingAccount不起作用。更具体的是,SendUsingAccount确实更新了MailItem的条目,但是"From"显示窗口中的条目
不会更新。有人可以确认这个错误吗?

I have been scratching my head for 2 days over this but it seems to me that there is a bug with Outlook 2010 where SendUsingAccount does not work. To be more specific SendUsingAccount does update the entry for the MailItem however the "From" entry in the display window does not get updated. Can anybody please confirm this bug?

推荐答案

你好PC_Meister,

Hi PC_Meister,

谢谢你的提问。但我没能在我的实验室机器上重现您的问题。你能否提供一些代码来重新解决这个问题?

Thank you for your question. But I failed to reproduce your issue on my lab machine. Could you please provide me some code to re-produce this issue?

  这是我的示例代码:

Sub SendUsingAccount()
 
 Dim oAccount As Outlook.Account
 Dim oMail As Outlook.MailItem
 
 Set oAccount = Application.Session.Accounts.Item(1)
 
 Set oMail = Application.CreateItem(olMailItem)
 
 oMail.Subject = "Sent using MAPI Account"
 
 oMail.Recipients.Add "xxx@microsoft.com"
 
 oMail.Recipients.ResolveAll
 
 oMail.SendUsingAccount = oAccount
 
 oMail.Send
End Sub

问候,

Jeffrey


这篇关于SendUsingAccount在Outlook 2010中不起作用,可能是错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆