Issue connecting SmtpClient
-
@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 -
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.
-
@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
-
-
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.
-
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 :)
-
@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