使用Outlook API发送电子邮件时出错

使用Outlook API发送电子邮件时出错

问题描述:

我试图使用MS Outlook API通过Windows 7机器上的.Net 4 C#应用程序发送电子邮件。 如果我不在代码中设置任何发件人的电子邮件ID,我能够成功发送它。使用Outlook API发送电子邮件时出错

但是当我调用SendUsingAccount(),我得到一个访问冲突错误:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

能否请指教?

谢谢。

谢谢all.This问题现在解决。这是因为我的机器上的MS Office损坏发生。