【发布时间】:2015-04-09 08:40:12
【问题描述】:
我正在尝试使用 Domino 服务器从 C#/VB.NET 发送电子邮件。 (拥有 Lotus Notes 客户端 8.5.3FP6)
代码看起来像
using Domino;
...
try
{
NotesSession ns = new NotesSession();
NotesDatabase db = default(NotesDatabase);
NotesDocument doc = default(NotesDocument);
if (ns != null)
{
ns.Initialize(password); // Crashes here
...
我看过几个例子
http://www.ibm.com/developerworks/lotus/library/domino-msnet/
http://www.codeproject.com/Articles/29442/Send-Lotus-Notes-Email-Using-C
http://www.codeproject.com/Tips/628681/Sending-mail-from-LotusNotes-using-Csharp
Lotus Notes Sending email with options
但它们都在 Initialize 调用中崩溃,没有进入 catch 语句,因此我可以看到任何错误消息。
有什么问题吗?我尝试了 InitializeUsingNotesUserName 以及没有将密码发送到 Initialize,结果相同。
如果互操作文件有任何问题,我也尝试导入对 Domino 的引用。
谢谢!
【问题讨论】:
-
你是为 64 位还是 32 位构建?
-
好的,这很好 - 因为 64 位不支持 Domino COM 类。你是说 catch 语句根本没有被调用?是否在 Notes 客户端安装的 IBM Technical Support 文件夹中创建了 nsd 文件?
标签: c# lotus-domino