How to send mail via SMTP and get it by using Qt?

后端 未结 3 1773
鱼传尺愫
鱼传尺愫 2021-01-02 10:06

As I unserstand I should use QTcpSocket class in order to send a mail, and QTcpServer class in order to listen the connection and get the mail. But as I am a begginer in thi

相关标签:
3条回答
  • 2021-01-02 10:38

    This worked for me: Simple Smtp for Qt5.

    0 讨论(0)
  • 2021-01-02 10:43

    This is a working e-mail sending example for C++ and Qt and it works very well. I think you can take a look at this example to learn more. (It is LGPL) Thanks bluetiger9 for this code by the way.

    0 讨论(0)
  • 2021-01-02 10:51

    if you are serious of making yet another smtp implementation starting from Qt, I would suggest at least reading the smtp-rfc. To be productive, I would look for an smtp library like this (randomly chosen, I haven't used it yet).

    A simple example from a q&a site can only help you upto your next problem.

    0 讨论(0)
提交回复
热议问题