且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要帮助以编程方式发送邮件

更新时间:2022-01-09 05:06:35

Rostau写道:
我正在写作一个需要使用C ++并且需要从程序内部发送电子邮件的小应用程序。我可以在PHP,Perl和Java中轻松完成这项工作,但不知道如何在C ++中完成它。


嗯,这是可以理解的。在C ++中没有办法做到这一点。你需要

来使用某种特定于操作系统的设施。

有没有人知道我看到的免费代码包含了这个
功能?


很多。你听说过 www.google.com?

基本上,我需要[..]
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++.
Well, that''s understandable. There is no way to do it in C++. You need
to use some kind of OS-specific facility.
Does anyone know of free code I look at that incorporates this
function?
Plenty. Have you ever heard of www.google.com?
Basically, I need [..]




无论如何。


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


" Rostau" < EV ******** @ ananzi.co.za>在消息中写道

news:11 ********************** @ i40g2000cwc.googlegr oups.com ...
"Rostau" <ev********@ananzi.co.za> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
大家好

我正在编写一个需要使用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.




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

连接到你的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.


谢谢你基本上是一个粗鲁的混蛋。如果你没有任何东西来支付b $ b b贡献,为什么还要打扰?技术傲慢是为了
wankers。鼓励人们学习东西的方法,笨蛋。

Thanks for basically being a rude git. If you didn''t have anything to
contribute, why did you bother posting? Techno-arrogance is for
wankers. Way to encourage people to learn things, dickhead.