监控程序中的事件并通过电子邮件发送报告 [英] Monitoring events in my program and emailing reports

查看:134
本文介绍了监控程序中的事件并通过电子邮件发送报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢我的程序(在我的家用机器上运行)

给我发电子邮件(无论我在哪里)每当它到达某一英里石头时

(完成一个模拟的阶段或在模拟中遇到一个有趣的

路径。我只是想添加这个功能,所以它可以给我发b $ b $给我发电子邮件的部分结果。

的源代码是否可以添加到我的程序中?我是否需要

一个SMTP服务器代码,或者我可以使用我当前的SMTP ISP smtp

服务器给自己发送电子邮件吗?


我知道我总是可以在我的网站上将结果写在d文件中

服务器,但我希望在需要时通过电子邮件将结果发送给自己。


非常感谢提前。


Ben

I like to have my program (running on my home machine)
email me (wherever I am) whenever it reaches a certain mile-stone
(finishes a phase of the simulation or runs into an interesting
path in the simulation). I just like add the feature so it can
email me the partial results. Is there a source code for
something like this I can add to my program? Do I need
an SMTP server code or can I use my current SMTP ISP smtp
server to email myself?

I know I can always write the results in d file on my web
server, but I want results emailed to myself when needed.

Thanks a lot in advance.

Ben

推荐答案

Pie写道:
Pie wrote:
我喜欢我的程序(在我的家用机器上运行)
给我发电子邮件(无论我在哪里),只要它达到一定的英里石头
(完成模拟阶段或遇到一个有趣的事情) />模拟中的路径)。我只是喜欢添加功能,以便它可以给我发电子邮件部分结果。是否有类似这样的源代码我可以添加到我的程序中?我是否需要一个SMTP服务器代码,或者我可以使用我当前的SMTP ISP smtp
服务器给自己发送电子邮件吗?

我知道我总是可以将结果写在我的d文件中web
服务器,但我想在需要时通过电子邮件发送给自己。

非常感谢。

Ben
I like to have my program (running on my home machine)
email me (wherever I am) whenever it reaches a certain mile-stone
(finishes a phase of the simulation or runs into an interesting
path in the simulation). I just like add the feature so it can
email me the partial results. Is there a source code for
something like this I can add to my program? Do I need
an SMTP server code or can I use my current SMTP ISP smtp
server to email myself?

I know I can always write the results in d file on my web
server, but I want results emailed to myself when needed.

Thanks a lot in advance.

Ben




可能有可用的来源,但1)这不是comp.sources.wanted

和2)这些来源不是标准C ++(这里的主题),因为

标准C ++不支持电子邮件或任何类型的网络。


-Kevin

-

我的电子邮件地址有效,但会定期更改。

要联系我,请使用最近发布的地址。



There may be sources available, but 1) this is not comp.sources.wanted
and 2) those sources won''t be in standard C++ (the topic here), since
standard C++ has no support for email, or networking of any kind.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.


Kevin Goodsell写道:
Kevin Goodsell wrote:
Pie写道:
Pie wrote:
我喜欢我的程序(在家里的机器上运行)
给我发电子邮件(无论我在哪里) )每当它达到一定的里程碑时
(完成模拟的一个阶段或在模拟中遇到一条有趣的路径)。我只是喜欢添加功能,以便它可以给我发电子邮件部分结果。是否有类似这样的源代码我可以添加到我的程序中?我是否需要一个SMTP服务器代码或者我可以使用我当前的SMTP ISP smtp
服务器给自己发送电子邮件吗?
我知道我总是可以在我的网站上将结果写入d文件服务器,但我希望在需要时通过电子邮件发送给自己。

非常感谢。

Ben
I like to have my program (running on my home machine)
email me (wherever I am) whenever it reaches a certain mile-stone
(finishes a phase of the simulation or runs into an interesting path
in the simulation). I just like add the feature so it can
email me the partial results. Is there a source code for
something like this I can add to my program? Do I need
an SMTP server code or can I use my current SMTP ISP smtp
server to email myself?
I know I can always write the results in d file on my web
server, but I want results emailed to myself when needed.

Thanks a lot in advance.

Ben



有可能是可用的来源,但1)这不是comp.sources.wanted
和2)这些来源不会在标准C ++(这里的主题),因为
标准C ++不支持电子邮件或者任何类型的网络。


There may be sources available, but 1) this is not comp.sources.wanted
and 2) those sources won''t be in standard C++ (the topic here), since
standard C++ has no support for email, or networking of any kind.




是的。


如果你有一个命令行程序来邮寄东西你的平台

已经,你可以使用系统(mail myfile.txt)或打开一个管道到

程序。



True that.

If you have a command-line program to mail stuff on your platform
already, you could use system( "mail myfile.txt" ) or open a pipe to the
program.


Jeff Schwab写道:
Jeff Schwab wrote:
如果你有一个命令行程序来在你的平台上邮寄东西
已经可以使用系统了(mail myfile.txt&q UOT; )或打开
程序的管道。
If you have a command-line program to mail stuff on your platform
already, you could use system( "mail myfile.txt" ) or open a pipe to the
program.




但你不能用标准的C ++打开管道。


-Kevin

-

我的电子邮件地址有效,但会定期更改。

要联系我,请使用以下地址:最近发布的帖子。



But you can''t open a pipe using standard C++.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.


这篇关于监控程序中的事件并通过电子邮件发送报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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