Results 1 to 5 of 5

Thread: response from mail server

  1. #1
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation response from mail server

    hello
    How can I send something like "get" in a mail server (smtp & pop) to realize that server respond well;
    that works well;

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: response from mail server

    For SMTP you should send HELO after connection.
    For ESMTP send EHLO.
    You can use QTcpSocket or QNetworkAccessManagerfor that.
    In Qt 4.6 there is better support for protocols like SMTP, IMAP.

  3. The following user says thank you to yogeshgokul for this useful post:

    zakis (22nd September 2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: response from mail server

    Hello
    Can you explain how I can do with QNetworkAccessManager?
    and the answer of the server will get it with a QNetworkReply?
    Can you show me an example;
    thanks

  5. #4
    Join Date
    Aug 2009
    Posts
    10
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: response from mail server

    hi again:D
    i check simple mail-client....http://qt.nokia.com/doc/3.0/mail-example.html

    if i use QTcpSocket and send HELO to see if server response:

    1) should send the helo from my smtp server?
    2) how to display the result? for example in a textEdit?

    thanks again...

  6. #5
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: response from mail server

    Quote Originally Posted by zakis View Post
    1) should send the helo from my smtp server?
    I think you creating a mail client (not a server) so from your client, you have to send HELO request to mail server.
    Quote Originally Posted by zakis View Post
    how to display the result? for example in a textEdit?
    Its in the example only you refereed. But if you are using QTCPSocket then read all data from socket in a QString and display it how ever you want.

Similar Threads

  1. Replies: 3
    Last Post: 29th November 2009, 20:24
  2. request for mail server
    By zakis in forum Qt Programming
    Replies: 0
    Last Post: 30th August 2009, 10:20
  3. how to read Email from INBOX
    By amit_pansuria in forum Qt Programming
    Replies: 22
    Last Post: 7th June 2007, 06:40
  4. How to ping a server ?
    By Nyphel in forum Newbie
    Replies: 2
    Last Post: 23rd April 2007, 11:27
  5. synching client readings to server output
    By OnionRingOfDoom in forum Qt Programming
    Replies: 14
    Last Post: 28th January 2006, 18:15

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.