通过邮件发送自动警报报告 [英] Send Automatic alarm reports by mail

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

问题描述

你好,
我有一个奇怪的问题.

我有一个应用程序,A,它需要发送格式化的消息,以及一个地址到电子邮件客户端(例如,Lotus Notes/Outook等,最好是前者),并且让客户端在没有任何干预的情况下将该邮件邮寄(即没有人要按发送"在客户端上).这必须在后台发生.

我收到的邮件,我有地址,我知道如何选择默认的电子邮件客户端.

如何发送预格式化的消息和地址(我猜是MAIL:TO),并让客户端自动发送消息?

该应用程序使用C ++和Qt.我可能需要调用客户端的一些API.他们会暴露这些吗?

感谢您的帮助.

Hello,
I''ve got a strange problem.

I have an application,A, which is required to send a formatted message, and an address to an email client (e.g.Lotus Notes/Outook etc., preferably the former), and have the client mail that message, without any intervention (i.e.no one to press on send in the client). This must happen in the background.

The message I have, I have the address, I know how to pick a default email client.

How do I send the preformatted message and address (I''m guessing some MAIL:TO), and have the client send the message automatically?

The application is in C++ and Qt. I''ll probably require some API of the client to be called. Do they expose these?

Thanks for your help.

推荐答案

除非您有足够的控制权,使该客户端永远不会更改,否则我不会选择特定的客户端(某些您不希望绑定的对象)至).

看看这个链接 [ ^ ](此处的文章不如其网站中的文章新).

在这里,您将找到一些类(仔细研究代码,对所有依赖项都有很好的解释),它们可以帮助您发送电子邮件,甚至不需要在计算机上安装Outlook或任何其他客户端.

最好的是,由Outlook建立的安全措施(询问外部应用程序要发送的每条消息)都会自动消失,这使其成为无人值守发送电子邮件的理想选择.

希望对您有帮助.
I would not go with a specific client unless you have plenty of control that this client will never change (something you should not want to tie to).

Take a look at this link[^] in a website from one of the members of CP (the article here is not as new as in his web site).

Here you will find some classes (look into the code, there are all the dependencies well explained) that will help you to send e-mails without even needing to install outlook or any other client in your machine.

The best of it is that the safe measures established by Outlook (asking for each message that an external app wants to send) are automatically gone, making this perfect for unattended sending e-mails.

Hope this helps you.


这篇关于通过邮件发送自动警报报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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