PDA

View Full Version : Sending E-mail through Qt Application



baluk
10th September 2010, 11:55
Hi,

I am implementing a Qt application using Qt creator and I have to provide the user with E-mail mechanism. Suppose, If I want to send a mail with To address "xx@gmail.com" and From address "xxx@hotmail.com", is it possible to do this in Qt.

I did some goggling, but nothing useful was found to my understanding. Can anyone provide the example or any document relating to this issue. I would be grateful for any help.

Thank you,
Baluk

squidge
10th September 2010, 12:58
Sure, the only problem you'll have is if the "To" address is variable, you'll need to do a MX lookup in your software. Otherwise you can just hard code the result and hope it doesn't change.

I believe there are email components for Qt that makes the hole process a whole lot simpler for you. See here: http://www.qtcentre.org/threads/2221-Sending-email-using-Qt.

estanisgeyer
11th September 2010, 18:01
See Poco libraries (www.pocoproject.org). In this library you'll find classes for working with network resources, email, ...