Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. Simple TLS/SSL supported SMTP client for Qt5
Forum Updated to NodeBB v4.3 + New Features

Simple TLS/SSL supported SMTP client for Qt5

Scheduled Pinned Locked Moved Showcase
32 Posts 19 Posters 43.1k 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 Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #23

    Did you check whether your server uses an outdated protocol that is either not supported anymore or disabled by default for security reasons.

    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
    0
    • N Offline
      N Offline
      Nyrenthia
      Banned
      wrote on last edited by Nyrenthia
      #24
      This post is deleted!
      1 Reply Last reply
      0
      • S Offline
        S Offline
        sanshow
        Banned
        wrote on last edited by
        #25
        This post is deleted!
        1 Reply Last reply
        0
        • W Offline
          W Offline
          work
          Banned
          wrote on last edited by
          #26
          This post is deleted!
          1 Reply Last reply
          0
          • SGaistS SGaist

            Did you install and openssl on your window machine ? Is your Qt built with SSL support ?

            O Offline
            O Offline
            opengpu
            wrote on last edited by
            #27

            @SGaist does the Qt-installer with SSL? i donot want to compile Qt by myself

            1 Reply Last reply
            0
            • O Offline
              O Offline
              opengpu
              wrote on last edited by
              #28

              @fab_ said in Simple TLS/SSL supported SMTP client for Qt5:

              Hello everyone.

              this post is long long ago, so does this is still work for current new version Qt?
              and is there better SMTP Qt lib?

              1 Reply Last reply
              0
              • F fab_

                Hello!

                It's both I guess.
                I want to use the functions that lib gives me in my code for my application.

                When i deploy the application i usually have to provide all neccessary dll files in the same folder (libmysql.dll) for example. So no static linking if thats what you're referring to.

                If you look at the github page of my first post. There is an example of its usage right on the front page. I'm trying to achieve to get this example to run properly.
                https://github.com/bluetiger9/SmtpClient-for-Qt

                After I made my first post I spent the rest of the night tinkering with it and I managed to get something going:

                Following this;
                https://wiki.qt.io/How_to_create_a_library_with_Qt_and_use_it_in_an_application
                I saw that MinGW (I use MinGW)creates a .dll and a .a file. I copied both those files in the folder containing the project where there supposed to be used. I also copied the header files in the same folder.

                Here is my .pro file:

                QT       += core
                QT       -= gui
                
                TARGET = SMTPEmailTestDLL
                CONFIG   += console
                CONFIG   -= app_bundle
                
                TEMPLATE = app
                
                win32:CONFIG (release, debug|release): LIBS += -L$$PWD/ -lSMTPEmail
                else:win32:CONFIG (debug, debug|release): LIBS += -L$$PWD/ -lSMTPEMail
                else:unix: LIBS += -L$$PWD/ -lSMTPEmail
                
                INCLUDEPATH += $$PWD/
                DEPENDPATH += $$PWD/
                
                SOURCES += main.cpp
                

                This actually enabled me to build and run the programm as seen on bluetiger9's github front page.

                But, upon running it either terminates with return value -1073741515 or I get the message that "The process to debug couldnt be adressed: wrong parameter"

                Weirdly, although receiving those messages, the programm sometimes actually sends an Email out to my gmail Account (be it with a wrong timestamp) as intended, but sometimes it just doenst.

                So I might've done something wrong on the way.
                I'm sorry if the information I'm giving is somewhat blurry. I appreciate you taking some time for this SGaist!

                O Offline
                O Offline
                opengpu
                wrote on last edited by
                #29

                @fab_

                opengpu 36 minutes ago

                anyone ever used libcurl to send email to smtp server?how many milliseconds it need for sending mail one time?is it fast enough to send email by libcurl in mainThread?

                i tried this one, it works. but it's slow, as it needs about 3000 milliseconds for sending email one time.
                https://github.com/bluetiger9/SmtpClient-for-Qt

                aha_1980A 1 Reply Last reply
                0
                • O opengpu

                  @fab_

                  opengpu 36 minutes ago

                  anyone ever used libcurl to send email to smtp server?how many milliseconds it need for sending mail one time?is it fast enough to send email by libcurl in mainThread?

                  i tried this one, it works. but it's slow, as it needs about 3000 milliseconds for sending email one time.
                  https://github.com/bluetiger9/SmtpClient-for-Qt

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #30

                  @opengpu would you please stop spamming every e-mail related thread?

                  you have a concrete question, so ask it. provide example code so others understand your problem.

                  Regards

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    KAHOOT
                    Banned
                    wrote on last edited by
                    #31
                    This post is deleted!
                    1 Reply Last reply
                    -1
                    • C Offline
                      C Offline
                      carlsen8055
                      Banned
                      wrote on last edited by
                      #32
                      This post is deleted!
                      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