[英]C++ mfc create a mail sending button?
是否可以在基于C ++ MFS对话框的文档中创建一个按钮,以便在按下该按钮后会将一些数据发送到您的电子邮件中?
You can use the functions that come with the MAPI ActiveX control, to send an email. 您可以使用MAPI ActiveX控件随附的功能来发送电子邮件。 I had done this in Visual C++ 6.
我在Visual C ++ 6中做到了这一点。
Edit : 编辑:
The ActiveX control does not show up in the toolbox on Visual Studio 2010 , so you have add them. ActiveX控件未显示在Visual Studio 2010的工具箱中,因此已添加了它们。
You need to add both the controls. 您需要添加两个控件。 After adding the controls, create a variable for the controls and the respective classes shall be generated .
添加控件后,为控件创建一个变量,并生成相应的类。
Mapi Session to keep track of the session - Logon / Logoff Mapi会话以跟踪会话-登录/注销
Mapi Messages to compose the message and send them. Mapi Messages组成消息并发送。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.