开发者

QT: Add e-mail capabilities (send, scan, download attachments) to a Qt App

开发者 https://www.devze.com 2023-02-27 17:50 出处:网络
I hav开发者_开发技巧e a cross platform Qt application i\'d like to add e-mail capabilities for. Given that the user grants his/her permission to the application and provides the e-mail/server/password

I hav开发者_开发技巧e a cross platform Qt application i'd like to add e-mail capabilities for. Given that the user grants his/her permission to the application and provides the e-mail/server/password information to the application, i'd like to:

  1. Programmatically send e-mails using that account
  2. Scan the inbox looking for certain e-mails i'd be interested to download (search strings inside subject lines)
  3. Be able to download attachments from e-mails i deem interesting.

Ideally, i'd like to be able to interface to popular e-mail services like GMail, Hotmail, (IMAP) so that my users have an easy configuration (e.g. "I have gmail, here's my ID/password").

Is there any Qt library that can assist in that task?


You may want to take a look at this

make sure that you may need to change some stuff over there, such as:

socket->connectToHost( "smtp.yourserver.com", 25);

for the gmails (for instance) smpt server,etc...

0

精彩评论

暂无评论...
验证码 换一张
取 消