如何使用“mapisendmail”通过thunderbird发送邮件 [英] How to send mail through thunderbird using "mapisendmail"

查看:123
本文介绍了如何使用“mapisendmail”通过thunderbird发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HINSTANCE lib = LoadLibrary(_T(C:\\Program Files(x86)\\ Mozilla Thunderbird \\mozMapi32.dll));

HINSTANCE hMAPI;



我已经加载了这样的库

HINSTANCE lib = LoadLibrary(_T("C:\\Program Files (x86)\\Mozilla Thunderbird\\mozMapi32.dll"));
HINSTANCE hMAPI;

I have loaded library like this

推荐答案

你不需要加载 mozMapi32 .dll 当Thunderbird是您的默认邮件客户端时。然后 mapi32.dll 被Thunderbird DLL取代,应加载。此方法允许使用简单的MAPI操作,而无需检查默认邮件程序的类型。



无论客户端DLL如何,只需使用简单MAPI函数,如< a href =http://msdn.microsoft.com/library/windows/desktop/dd296734%28v=vs.85%29.aspx> MSDN [ ^ ]。您应该始终检查功能是否受支持,因为某些邮件客户端可能不包含这些功能。



另请参阅 Thunderbird MAPI支持 [ ^ ]。



通过搜索类似c ++ mapi sendmail example的内容,可以在网上找到C ++示例。
You don't need to load mozMapi32.dll when Thunderbird is your default mail client. Then mapi32.dll is replaced by the Thunderbird DLL and that should be loaded. This method allows using simple MAPI operations without checking for the type of the default mail program.

Regardless of the client DLL just use the Simple MAPI functions as described in the MSDN[^]. You should always check if functions are supported because some may be not included by all mail clients.

See also Thunderbird MAPI support[^].

C++ examples can be found in the web by searching for something like "c++ mapi sendmail example".


这篇关于如何使用“mapisendmail”通过thunderbird发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆