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. 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? SmtpClient-for-Qt needs about 3000 milliseconds for sending email one time.
Forum Updated to NodeBB v4.3 + New Features

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? SmtpClient-for-Qt needs about 3000 milliseconds for sending email one time.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 568 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.
  • O Offline
    O Offline
    opengpu
    wrote on last edited by opengpu
    #1

    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

    jsulmJ 1 Reply Last reply
    0
    • O opengpu

      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

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

      @opengpu Please don't write so long titles!

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

      1 Reply Last reply
      2
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        If you use any synchronous method that involves connecting to the web it will be too slow for the main thread. No matter what library you use

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        3
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          To add to @VRonin, you can't rely on such timing. There are lots of possible delaying points that exist. Your device can be overloaded, your network can be congested, the mail server loads, the mail server connection etc.

          You can't just expect to send fast email unless you completely control the whole system and even then.

          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
          5

          • Login

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