Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to read emails from Gmail in Qt
AmrCoder last edited by
I try to search on the internet for a qt library or project that I can send and fetch the emails on my Gmail account but
the only thing I found is how to send only and I try it and works fine for me now
I ask how can I get emails from a Gmail account.
if there is a library or a project which is easy to use to solve this
and help me get my emails from Gmail account and use it in my application
Thanks in Advance
VRonin last edited by
What you need is just an IMAP client, QSslSocket documentation has an example on how to connect to an IMAP server.
VMime is a C++ library to handle IMAP, alternatively, Trojita is a Qt based IMAP client application so you can probably steal most of the code from there