smtp client



  • hello, i've downloaded some working smtp library for sending mail that works fine if i'm using gmail account, but when i'm trying to connect to my account wich has name for example somename.one@company.ru i got error: Server response: "535 Incorrect authentication data: authentication failed for somename.one@company.ru\r\n".

    here is the log :
    qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_client_callback
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_client_method
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_client_method
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_server_method
    qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_server_method
    qt.network.ssl: QSslSocket: cannot resolve SSL_select_next_proto
    qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
    qt.network.ssl: QSslSocket: cannot resolve SSL_get0_next_proto_negotiated
    No attachments found
    stateChanged QAbstractSocket::HostLookupState
    stateChanged QAbstractSocket::ConnectingState
    stateChanged QAbstractSocket::ConnectedState
    Connected
    qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get0_next_proto_negotiated
    readyRead
    Server response code: "220"
    Server response: "220 smtp40.i.mail.ru ESMTP ready\r\n"
    readyRead
    Server response code: "250"
    Server response: "250-smtp40.i.mail.ru\r\n250-SIZE 73400320\r\n250-8BITMIME\r\n250-PIPELINING\r\n250 AUTH PLAIN LOGIN XOAUTH2\r\n"
    qt.network.ssl: QSslSocket::startClientEncryption: cannot start handshake on non-plain connection
    "Unknown error"
    readyRead
    Server response code: "250"
    Server response: "250-smtp40.i.mail.ru\r\n250-SIZE 73400320\r\n250-8BITMIME\r\n250-PIPELINING\r\n250 AUTH PLAIN LOGIN XOAUTH2\r\n"
    Auth
    readyRead
    Server response code: "334"
    Server response: "334 VXNlcm5hbWU6\r\n"
    Username
    readyRead
    Server response code: "334"
    Server response: "334 UGFzc3dvcmQ6\r\n"
    Pass
    readyRead
    Server response code: "535"
    Server response: "535 Incorrect authentication data: authentication failed for somename.one@company.ru\r\n"

    https://github.com/xcoder123/SimpleSmtp_SSL_QT5/blob/master/README.md here is that library.Any suggestion? Thanks in advance!



  • now i'm getting this error :

    error "Error during SSL handshake: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol"


  • Lifetime Qt Champion

    Hi,

    Might be a silly question but do you have OpenSSL available ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.