PDA

View Full Version : How to send and receive Email ??



wincry
18th October 2009, 13:56
Hi Everybody ,
I am a newbie to qt and started reading the book "The Foundations of Qt Development".
I have a question how do i send and receive emails from qt ? please help me.
i am trying to make a project in qt .it is a " Railway Freight Tracking System ", so need to know how do i send and receive emails form qt so i can send it to the various
consignors, consignees. Please provide a complete tutorial ,i want something like a automated email sender without any user involvement .

Gnurou
18th October 2009, 15:02
Read about the SMTP (http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol#Protocol_overview) and POP3 (http://en.wikipedia.org/wiki/POP3) protocols and implement the part you need using the QTcpSocket (http://qt.nokia.com/doc/4.5/qtcpsocket.html) class. Using readLine and write, it should not be too difficult to get something basic working. I have found an example (http://doc.trolltech.com/3.0/mail-example.html) for sending email using Qt 3.0 which you might use as a reference (it won't compile with Qt >= 4.0 though).

I have also looked at your post history so far, and think this document (http://catb.org/~esr/faqs/smart-questions.html) might also be a good read.

Lykurg
18th October 2009, 15:09
Please provide a complete tutorial
Yes, of course, this is absolutely no problem. But to be honest I would like to program your whole application! So please simply write what the application should do and I develop it for you. May be I also pay that I am permitted to do so...

wysota
18th October 2009, 15:46
Google for QwwSmtpClient. It's not complete but should work for most cases.

wincry
18th October 2009, 17:51
I have also looked at your post history so far, and think this document (http://catb.org/~esr/faqs/smart-questions.html) might also be a good read.

Thanks for the help .You got me there i always do some stupid things.