Results 1 to 10 of 10

Thread: Problem using gmail SMTP to send E-mail from application

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem using gmail SMTP to send E-mail from application

    Ok but this is only the connecting phase. Now you should send the ssl handshake. Otherwise after 30 seconds the server disconnects you (which you can see in the last block you posted).

    I do have a working example of using gmail but with QwwSmtpClient and not the class you are currently using.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem using gmail SMTP to send E-mail from application

    Thanks wysota. I'm sending you a PM about it.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem using gmail SMTP to send E-mail from application

    As for the class you are using - maybe you need to reorder the calls. To me it seems the class doesn't know it should be using ssl and waits for a regular handshake from the server which doesn't come because of lacking ssl negotiations.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. The following user says thank you to wysota for this useful post:

    Tottish (2nd March 2011)

  5. #4
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem using gmail SMTP to send E-mail from application

    OK, that might very well be the case but I don't really have the time to dig into that now. That is why I've decided to try it the wwWidgets way. See PM about example code request and licensing questions.

    Thanks!
    /Tottish

Similar Threads

  1. send mail from qt app problem
    By cutie.monkey in forum Qt Programming
    Replies: 12
    Last Post: 30th September 2010, 19:31
  2. Sending E-mail through Qt Application
    By baluk in forum Newbie
    Replies: 2
    Last Post: 11th September 2010, 18:01
  3. Why Yahoo & Gmail e-mail accounts are not accepted???
    By pat in forum Introduction to Qt
    Replies: 7
    Last Post: 20th May 2008, 17:16
  4. sending encrypted data via mail using smtp
    By vermarajeev in forum General Programming
    Replies: 20
    Last Post: 14th August 2007, 19:47
  5. Replies: 4
    Last Post: 17th June 2007, 10:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.