Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved How To Send File with mail, with SMTP client for Qt 5.0

    General and Desktop
    3
    8
    3322
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Taz742
      Taz742 last edited by Taz742

      Hello guys.
      I using Qt 5.7.0
      I want To Send file via mail.
      i download https://morf.lv/adding-file-attachments-to-smtp-client-for-qt5 but i have many errors:

      qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
      qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
      qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
      qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
      No attachments found
      stateChanged QAbstractSocket::HostLookupState
      stateChanged QAbstractSocket::ConnectingState
      stateChanged QAbstractSocket::ConnectedState
      qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
      qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
      qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method
      qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new
      qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init
      qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
      error QAbstractSocket::SocketError(21)
      qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error
      error QAbstractSocket::SocketError(20)
      Connected
      error QAbstractSocket::RemoteHostClosedError
      stateChanged QAbstractSocket::ClosingState
      stateChanged QAbstractSocket::UnconnectedState
      disconneted
      error "The remote host closed the connection"

      Do what you want.

      1 Reply Last reply Reply Quote 0
      • E
        Eddy last edited by

        Hi,

        did you use

        QT += network
        

        in you or file?

        Eddy

        Qt Certified Specialist
        www.edalsolutions.be

        Taz742 1 Reply Last reply Reply Quote 1
        • Taz742
          Taz742 @Eddy last edited by

          @Eddy
          yeap

          Do what you want.

          1 Reply Last reply Reply Quote 0
          • E
            Eddy last edited by

            When I follow the link you gave us I find on this page:

            To run the exectutable you have to install Qt5, Microsoft Visual C++ redistributables and OpenSSL on your computer.
            To compile you just need OpenSSL and Qt5!
            

            did you meet this requirements?

            BTW what environment are you using?

            Eddy

            Qt Certified Specialist
            www.edalsolutions.be

            Taz742 2 Replies Last reply Reply Quote 2
            • Taz742
              Taz742 @Eddy last edited by

              @Eddy said in How To Send File with mail, with SMTP client for Qt 5.0:

              When I follow the link you gave us I find on this page:

              To run the exectutable you have to install Qt5, Microsoft Visual C++ redistributables and OpenSSL on your computer.
              To compile you just need OpenSSL and Qt5!
              

              did you meet this requirements?

              BTW what environment are you using?

              Eddy

              jast i reliase this project Other people can use it?

              Do what you want.

              1 Reply Last reply Reply Quote 0
              • E
                Eddy last edited by

                jast i reliase this project Other people can use it?
                

                I don't understand exactly what you're saying.

                As I look in the webpage of the code, I see other people have the same problem as you and the writer of the code answered them.
                Maybe you will get your answers directly from the author there.

                Eddy

                Qt Certified Specialist
                www.edalsolutions.be

                1 Reply Last reply Reply Quote 0
                • Taz742
                  Taz742 @Eddy last edited by

                  @Eddy said in How To Send File with mail, with SMTP client for Qt 5.0:

                  When I follow the link you gave us I find on this page:
                  To run the exectutable you have to install Qt5, Microsoft Visual C++ redistributables and OpenSSL on your computer.
                  To compile you just need OpenSSL and Qt5!

                  did you meet this requirements?
                  BTW what environment are you using?
                  Eddy

                  No i do not meet this requirements.
                  i dont need TLS/SSL.
                  i want file attachment: this

                  Do what you want.

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Hi,

                    Unless you plan to connect to an unsecured SMTP server (which would be a bad idea), you need OpenSSL.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post