Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Issue connecting SmtpClient
Forum Updated to NodeBB v4.3 + New Features

Issue connecting SmtpClient

Scheduled Pinned Locked Moved Solved 3rd Party Software
17 Posts 5 Posters 2.3k 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.
  • SGaistS SGaist

    Why not build the project and use it as a library as it is meant ?

    O Offline
    O Offline
    orsini29
    wrote on last edited by
    #7

    @SGaist
    Confused on what you mean by that, I am attempting to integrate this into a pre-existing project to send emails when certain issues arise, to warn someone who is not using the software of an issue on the computer...are you saying to clone the repository, and then move my project into the cloned repository?

    SGaistS 1 Reply Last reply
    0
    • O orsini29

      @SGaist
      Confused on what you mean by that, I am attempting to integrate this into a pre-existing project to send emails when certain issues arise, to warn someone who is not using the software of an issue on the computer...are you saying to clone the repository, and then move my project into the cloned repository?

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #8

      No, clone the repository, build the project and then use it as you would any other C++ library.

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

      O 1 Reply Last reply
      1
      • SGaistS SGaist

        No, clone the repository, build the project and then use it as you would any other C++ library.

        O Offline
        O Offline
        orsini29
        wrote on last edited by
        #9

        @SGaist
        Is that not what I am doing in this sense? I assume there a knowledge gap on my end, not using it as a library correctly..

        SGaistS 1 Reply Last reply
        0
        • O orsini29

          @SGaist
          Is that not what I am doing in this sense? I assume there a knowledge gap on my end, not using it as a library correctly..

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #10

          What you did is copy the files over to your project.

          That's not how you use a library.

          As an example, you are not copying the Qt files in your project to use it.

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

          O 1 Reply Last reply
          1
          • SGaistS SGaist

            What you did is copy the files over to your project.

            That's not how you use a library.

            As an example, you are not copying the Qt files in your project to use it.

            O Offline
            O Offline
            orsini29
            wrote on last edited by
            #11

            @SGaist
            I hate to be annoying, but I am just still confused. How would you go about using this in the correct way then? I'm sure it's super simple, and I'll kick myself once you help me but I just do not see it right now..Not looking for an answer but I guess just more of a push in the right direction..sorry again for making a simple problem more difficult then it needs to be

            SGaistS 1 Reply Last reply
            0
            • O orsini29

              @SGaist
              I hate to be annoying, but I am just still confused. How would you go about using this in the correct way then? I'm sure it's super simple, and I'll kick myself once you help me but I just do not see it right now..Not looking for an answer but I guess just more of a push in the right direction..sorry again for making a simple problem more difficult then it needs to be

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #12

              Open SMTPEmail.pro with Qt Creator, build it for debug and release. Install it somewhere central and then use LIBS to setup its use with your project.

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

              O 1 Reply Last reply
              1
              • SGaistS SGaist

                Open SMTPEmail.pro with Qt Creator, build it for debug and release. Install it somewhere central and then use LIBS to setup its use with your project.

                O Offline
                O Offline
                orsini29
                wrote on last edited by
                #13

                @SGaist
                Along with the *.cpp and *.h files correct? Basically have that project set aside somewhere local, and just reference the *.pro file within my EmailTest.pro file, by using the LIBS keyword, correct?

                jsulmJ 1 Reply Last reply
                0
                • O orsini29

                  @SGaist
                  Along with the *.cpp and *.h files correct? Basically have that project set aside somewhere local, and just reference the *.pro file within my EmailTest.pro file, by using the LIBS keyword, correct?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #14

                  @orsini29 said in Issue connecting SmtpClient:

                  and just reference the *.pro file within my EmailTest.pro file, by using the LIBS keyword, correct?

                  No, you do not reference any pro files via LIBS. You reference libraries. Please read https://doc.qt.io/qt-6/qmake-variable-reference.html#libs

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  O 1 Reply Last reply
                  1
                  • O orsini29 has marked this topic as solved on
                  • jsulmJ jsulm

                    @orsini29 said in Issue connecting SmtpClient:

                    and just reference the *.pro file within my EmailTest.pro file, by using the LIBS keyword, correct?

                    No, you do not reference any pro files via LIBS. You reference libraries. Please read https://doc.qt.io/qt-6/qmake-variable-reference.html#libs

                    O Offline
                    O Offline
                    orsini29
                    wrote on last edited by
                    #15

                    @jsulm @SGaist

                    Thanks for your assistance, got it all figured out. Sorry for the elementary questions, but thanks again!!

                    For anyone in the future, @jsulm had a useful link to point me in the correct direction with referencing the library, along with @SGaist explaining about compiling the project, rather then just using the source files.

                    1 Reply Last reply
                    0
                    • U Offline
                      U Offline
                      UserNotFound
                      wrote on last edited by
                      #16

                      Hello, @orsini29 I am encountering the same issue and I am lost as well. I have read everything that has been suggested but I am still not sure how to concretely implement stmp into my project. Could you be more specific on how you have manage to do it please ? It would be a great help to me, thanks :)

                      M 1 Reply Last reply
                      0
                      • U UserNotFound

                        Hello, @orsini29 I am encountering the same issue and I am lost as well. I have read everything that has been suggested but I am still not sure how to concretely implement stmp into my project. Could you be more specific on how you have manage to do it please ? It would be a great help to me, thanks :)

                        M Offline
                        M Offline
                        mr.paco
                        wrote on last edited by
                        #17

                        @UserNotFound just remove second Q_DECL_IMPORT from smtpmime_global.h :

                        #ifndef SMTPMIME_GLOBAL_H
                        #define SMTPMIME_GLOBAL_H

                        #ifdef SMTP_MIME_LIBRARY
                        #define SMTP_MIME_EXPORT Q_DECL_EXPORT
                        #else
                        #define SMTP_MIME_EXPORT
                        #endif

                        #endif // SMTPMIME_GLOBAL_H

                        1 Reply Last reply
                        0

                        • Login

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