hello
How can I send something like "get" in a mail server (smtp & pop) to realize that server respond well;
that works well;
Printable View
hello
How can I send something like "get" in a mail server (smtp & pop) to realize that server respond well;
that works well;
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.
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
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...
I think you creating a mail client (not a server) so from your client, you have to send HELO request to mail server.
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.