简体   繁体   English

在 Linux 上通过 Qt 发送邮件通知

[英]Mail notifications through Qt on Linux

I want to write a program which would show a pop up if a new mail arrives through Gmail.我想编写一个程序,如果新邮件通过 Gmail 到达,它会显示一个弹出窗口。

What library/api am I supposed to use get notifications from Gmail pro-grammatically?我应该使用什么库/api 以编程方式从 Gmail 获取通知?

You can treat GMail as an IMAP server and work with it like that.您可以将 GMail 视为 IMAP 服务器并像这样使用它。 You'll want a C++ IMAP library, there's quite a few out there but I'd start with VMime and avoid libEtPan.你会想要一个 C++ IMAP 库,那里有很多,但我会从 VMime 开始,避免使用 libEtPan。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM