本文介绍了需要帮助以编程方式发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我正在编写一个需要使用C ++的小应用程序,需要从程序内部发送电子邮件

。我可以在PHP,Perl和Java中轻松完成,

但是不知道怎么用C ++做。


有谁知道免费代码我看看那个包含了这个

的功能?基本上,如果程序出现问题,我需要向系统发送一封简单的电子邮件

支持。该程序将在Windows上运行,并且我将在MinGW下编译它。


非常感谢任何和所有帮助。


谢谢

Hi all

I''m writing a small app that needs to be in C++ and needs to send email
from inside the program. I can do this easily in PHP, Perl and Java,
but have no clue how to do it in C++.

Does anyone know of free code I look at that incorporates this
function? Basically, I need to send a simple email to the system
support if something goes wrong in the program. The program will be
running on Windows and I''ll be compiling it under MinGW.

Any and all help is much appreciated.

Thanks

推荐答案




无论如何。


V

-

请在通过电子邮件回复时删除资金''A'

我没有回复最热门的回复,请不要问



Whatever.

V
--
Please remove capital ''A''s when replying by e-mail
I do not respond to top-posted replies, please don''t ask





有几种方法,具体取决于你想要的方式。一种方法是打开一个套接字

连接到你的SMTP服务器并以这种方式发送消息。另一方面

是与某些系统电子邮件软件的接口。


这两个都是偏离主题的。开始谷歌搜索两种解决方案

并选择你想要的那个。如果你在实现它时遇到问题,因为

你的代码是不行的,那就是主题。



A few ways depending on how you want to do it. One way is to open a socket
connection to your SMTP server and send the message that way. The otherway
is to interface with some system e-mail software.

Both are rather off topic here though. Start googling for both solutions
and pick the one you want. If you have problems implementing it because
you''re code isn''t working, that''s on topic.



这篇关于需要帮助以编程方式发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 17:06
查看更多