在 Outlook send() 方法期间解析电子邮件地址
我正在使用 C# 和 VSTO 开发 Outlook 2010 Addin。该插件应该在发送之前对消息正文和附件进行加密。我构建了一个带有“发送安全”标签的功能区,并将工作放在功能区按钮的单击事件中。
问题是我必须验证“TO”、“CC”和“BCC”栏中的用户输入。我遇到的问题是,在 Outlook 表单中,收件人在某些情况下会显示联系人姓名或电子邮件地址。因此,验证电子邮件地址的形式是不够的,我必须验证联系人姓名是否存在于交换中并检索他的地址(解析)。这个解决方案是必要的,因为我必须根据收件人的电子邮件修改邮件并重新发送它。
是否可以调用send()函数的表单验证方法来验证用户输入?如果没有,您还有其他建议吗?
I am developing an Outlook 2010 Addin using C# and VSTO. This Addin is supposed to encrypt the message body and attachments before it sends. I built a Ribbon which has "send secured" label and I put the work in the click event for button on the Ribbon.
The problem is that I have to validate user input in the "TO" ,"CC",and "BCC" bars. I am having problem that in Outlook forms, the recipients in some cases shows contact name or e-mail address. Therefore, validating the form of e-mail address is not enough I have to validate if contact name exists in exchange and retrieve his address (resolve). This resolution is necessary since I have to modify message and resend it according to the recipients e-mail.
Is it possible to call the form validation method of send() function to verify user entries? If not, do you have another suggestion?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论