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. Sending email by invoking default mail client

Sending email by invoking default mail client

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 959 Views 1 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    Hi, I need to sending email by invoking default mail client.
    The object
    QDesktopServices::openUrl(QUrl("mailto:..."
    works perfectly on Linux but not on Windows.
    Can someone suggest me a way to resolve on Windows?
    Have you got some lines of code to resolve using the Windows api?
    Regards.

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    J.HilkJ 1 Reply Last reply
    0
    • mrdebugM mrdebug

      Hi, I need to sending email by invoking default mail client.
      The object
      QDesktopServices::openUrl(QUrl("mailto:..."
      works perfectly on Linux but not on Windows.
      Can someone suggest me a way to resolve on Windows?
      Have you got some lines of code to resolve using the Windows api?
      Regards.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @mrdebug
      My last information is, that it's nor possible to send E-Mails on Windows or to invoke the default windows E-Mail client.

      I ended up using a dummy gmail account and QSslSocket to send data via E-Mail on Windows


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      JonBJ 1 Reply Last reply
      1
      • J.HilkJ J.Hilk

        @mrdebug
        My last information is, that it's nor possible to send E-Mails on Windows or to invoke the default windows E-Mail client.

        I ended up using a dummy gmail account and QSslSocket to send data via E-Mail on Windows

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @J-Hilk said in Sending email by invoking default mail client:

        My last information is, that it's nor possible to send E-Mails on Windows or to invoke the default windows E-Mail client.

        Really?

        @mrdebug

        QDesktopServices::openUrl(QUrl("mailto:..."

        works perfectly on Linux but not on Windows.

        Just to be clear: this opens a physical, interactive window for the user to type email into and send. It does not allow you to compose the email from code. Correct/intended?

        J.HilkJ 1 Reply Last reply
        0
        • JonBJ JonB

          @J-Hilk said in Sending email by invoking default mail client:

          My last information is, that it's nor possible to send E-Mails on Windows or to invoke the default windows E-Mail client.

          Really?

          @mrdebug

          QDesktopServices::openUrl(QUrl("mailto:..."

          works perfectly on Linux but not on Windows.

          Just to be clear: this opens a physical, interactive window for the user to type email into and send. It does not allow you to compose the email from code. Correct/intended?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @JonB said in Sending email by invoking default mail client:

          Really?

          IIRC then yes, but my task was to combine it with an attachment, so maybe there comes the restriction in ?🤷‍♂️


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • mrdebugM Offline
            mrdebugM Offline
            mrdebug
            wrote on last edited by
            #5

            The most important problem for me is the attachment.

            Need programmers to hire?
            www.labcsp.com
            www.denisgottardello.it
            GMT+1
            Skype: mrdebug

            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