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
449 stars 226 forks source link

Finding out what when wrong? #137

Closed perdrix52 closed 1 year ago

perdrix52 commented 1 year ago

Is there any way for my code to determine what when wrong when any waitForReadyConnected(), waitForAuthenticated(), or waitForMailSent() return false?

Thanks David

bluetiger9 commented 1 year ago

Hi @perdrix52! The SmtpClient class defines the .getResponseCode() and .getResponseText() methods, which return the last (error) response received from the SMTP server.

If that is not enough you could try to enable the qDebug() logs to see exactly what happens.

perdrix52 commented 1 year ago

Thank you