从其他计算机发送了Outlook草稿 [英] Sent Outlook draft from other Computer
问题描述
我在Exchange Server上有一个电子邮件帐户,这种情况。我从
的计算机外观(连接到此电子邮件)开始运行此代码。该电子邮件将创建并保存在草稿中。
I got eMail account on Exchange Server and that situation. I start on my Computer outlook (connected to this Email) run this code. The Email will created and saved in drafts.Thats working fine.
然后,我拿起笔记本(连接到同一帐户),然后尝试从草稿中寄出。收到错误的错误电子邮件地址,但看起来像是正确的地址 test@test.com
。如果我删除它并再次从键盘 test@test.com
键入相同的地址,则它可以正常工作。我得到Windows 7,其Outlook 2013已禁用缓存Exchange
Than i take my notebook (connected to the same account) and try to sent it from the drafts. Get error wrong email address but it looks like correct address "test@test.com"
. If i delete this and type one more time the same address from my keyboard "test@test.com"
it works.I got Windows 7 ,`Outlook 2013 with disabled Cached Exchange Mode.
_OutlookApplication = New Microsoft.Office.Interop.Outlook.Application
Dim mailItem = CType(_OutlookApplication.CreateItem(OlItemType.olMailItem), MailItem)
mailItem.Recipients.Add("test@test.com")
mailItem.Body ="Text"
mailItem.Subject = "Subject"
mailItem.Save()
为什么要重新输入地址?以及我该如何解决?
Why should i retype the address? and how can i fix it?
推荐答案
_OutlookApplication = New Microsoft.Office.Interop.Outlook.Application
Dim mailItem = CType(_OutlookApplication.CreateItem(OlItemType.olMailItem), MailItem)
Dim _TestRec As Recipient
_TestRec=mailItem.Recipients.Add("test@test.com")
_TestRec.AddressEntry.Address = "test@test.com"
mailItem.Body ="Text"
mailItem.Subject = "Subject"
mailItem.Save()
问题是-mailItem.to仅设置显示名称。只能创建一个收件人并设置Recipient.AddressEntry.Address mailItem.Recipients.Add( test@test.com)
The problem is - mailItem.to setting only the Display Name. Had only to create a Recipient and set Recipient.AddressEntry.Address mailItem.Recipients.Add("test@test.com")
这篇关于从其他计算机发送了Outlook草稿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!