如何通过vc ++或mfc中的电子邮件发送meaage [英] How send a meaage through email in vc++ or mfc

查看:113
本文介绍了如何通过vc ++或mfc中的电子邮件发送meaage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Currentley我正在使用visualstudio-2010

Currentley i'm using visualstudio-2010

推荐答案

Windows为此提供了MAPI(消息应用程序接口)。从 MAPI编程概述开始[ ^ ]。您也可以使用关键字'mapi c ++ examples'在网上搜索一些例子。



使用MFC时,你可以使用 CDocument :: OnFileSendMail()将活动文档作为邮件附件发送。此函数的源代码也可以用作您自己函数的基础。
Windows provides MAPI (Messaging Application Program Interface) for this. Start at the MAPI Programming Overview[^] in the MSDN. You may also search the net for some examples using the keywords 'mapi c++ examples'.

When using MFC, you can use CDocument::OnFileSendMail() to send the active document as mail attachment. The source code of this function may be also used as base for your own function.


这篇关于如何通过vc ++或mfc中的电子邮件发送meaage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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