Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How To Send File with mail, with SMTP client for Qt 5.0
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 3.9k Views 2 Watching
  • 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.
  • Taz742T Offline
    Taz742T Offline
    Taz742
    wrote on last edited by Taz742
    #1

    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
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Hi,

      did you use

      QT += network
      

      in you or file?

      Eddy

      Qt Certified Specialist
      www.edalsolutions.be

      Taz742T 1 Reply Last reply
      1
      • EddyE Eddy

        Hi,

        did you use

        QT += network
        

        in you or file?

        Eddy

        Taz742T Offline
        Taz742T Offline
        Taz742
        wrote on last edited by
        #3

        @Eddy
        yeap

        Do what you want.

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          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

          Taz742T 2 Replies Last reply
          2
          • EddyE Eddy

            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

            Taz742T Offline
            Taz742T Offline
            Taz742
            wrote on last edited by
            #5

            @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
            0
            • EddyE Offline
              EddyE Offline
              Eddy
              wrote on last edited by
              #6
              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
              0
              • EddyE Eddy

                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

                Taz742T Offline
                Taz742T Offline
                Taz742
                wrote on last edited by
                #7

                @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
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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
                  1

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved