bluetiger9 / SmtpClient-for-Qt

An SMTP Client writen in C++ for Qt. Allows applications to send emails (MIME with text, html, attachments, inline files, etc.) via SMTP. Supports SSL and SMTP authentication.
https://github.com/bluetiger9/SmtpClient-for-Qt/wiki
GNU Lesser General Public License v2.1
456 stars 228 forks source link

new SmtpClient instead of SmtpClient smtp everytime send, will be faster? #88

Closed opengpu closed 2 years ago

opengpu commented 5 years ago

new SmtpClient instead of SmtpClient smtp everytime send, will be faster?

bluetiger9 commented 2 years ago

Depends. The sendEmail() method can be called multiple times. So, you may save some time if you're sending many small emails. Just be aware that some email will not accept multiple emails on a single SMTP connection.