0

We have several customers who have difficulty receiving PDF's from us via BPOS. In order to correct the problem, we have to change their "Send Options" from Outlook to Plain Text. What I would like to do is automate this so we don't have to manually do this to each contact for each user.
I written code where I can get to the contact in question, but I don't see where to set this particular setting. Can anybody point me in the right direction as to where this property may be?

Thanks, Eric Gurney

4

1 回答 1

0

我在 Outlook 中看不到任何以编程方式执行此操作的方法。不幸的是,并非 Outlook 中的所有内容都是可编写脚本的。

您可以做的最好的事情是提供一个脚本,告诉本地用户可以手动更改哪些收件人。如果 AddressEntry.Type 属性是SMTP,则可以将其更改为纯文本。此代码是 VBA,但应该很容易转换为 C#。

Sub CheckSMTP()

  Dim ns As Outlook.NameSpace
  Dim al As Outlook.AddressList
  Dim aes As Outlook.AddressEntries
  Dim ae As Outlook.AddressEntry
  Dim newae As Outlook.AddressEntry

  Set ns = session
  Set al = ns.AddressLists("Contacts")
  Set aes = al.AddressEntries

  For Each ae In aes
    Debug.Print ae.Address & " - " & ae.Type
  Next ae
End Sub
于 2012-01-20T17:38:00.770 回答