PDA

View Full Version : Sending mail using Qt



munna
18th December 2006, 10:27
Qt 3 had a class called QDns using which an e-mail could be sent easily. I cannot find anything similar in Qt 4.

I need something using which I send mails (with attachment) from my application itself.

Please help.
Thanks a lot.

wysota
18th December 2006, 10:44
Qt 3 had a class called QDns using which an e-mail could be sent easily.
Are you sure? QDns is used to resolve network addresses using DNS, not for sending emails...


I cannot find anything similar in Qt 4.
QDns replacement in Qt4 is QHostInfo.


I need something using which I send mails (with attachment) from my application itself.
I'm afraid QHostInfo won't be of much help here :) You need some SMTP class for that, I'm sure there is an SMTP class for C++ somewhere on the Net.

jpn
18th December 2006, 10:48
Sending email using Qt. (http://www.qtcentre.org/forum/f-qt-programming-2/t-sending-email-using-qt-2221.html)

munna
18th December 2006, 11:17
Are you sure? QDns is used to resolve network addresses using DNS, not for sending emails...

Yes, you are right. But QDns can also be used to look up for mail servers which I think cannot be done using QHostInfo. May be I am wrong.