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 227 forks source link

Issue with Android #121

Closed fdmsiv closed 1 year ago

fdmsiv commented 2 years ago

I have compiled with Qt6 and run on Windows10 Desktop and on Android Emulator, both send emails as expected.

When I try to deploy same code to physical Android Device I cannot connect to host (gmail) and I get an error along the lines of "can't wait for byteswritten cause socket is unconnected"

bluetiger9 commented 1 year ago

@fdmsiv, unfortunately I don't have any experience with Qt on Android. As an investigation step, I would suggest creating a simple application, which just uses a QSslSocket to check if a connection to the SMTP server can be established. If that does not works you probably have an issue with the Qt install on Android (maybe missing shared libs). If it works, I would suggest enabling qDebug() logs to see what goes wrong.