PDA

View Full Version : Email from my qt app



druvraj
11th July 2012, 18:38
Hi,

I have developed an application that is widely used in my company for testing. They wanted an email or sms notifying the tester when the run was finished. On the other hand I have also developed custom scoring tool. I wanted to build into that scoring tool an email option just to email the scored run. I do not want to receive any email but just send an email with the score report. Currently I have to save the report as html and then open the email client and send it. Any thoughts?

druvraj
11th July 2012, 20:40
For my first problem of sending sms or email to notify the tester that the run has completed, I used the QDesktopServices to send a mail. On my linux box I have no mail client setup so when the run has been completed it pops up the mail client dialog asking me to setup my client. So I am safe to assume that if any email client is set then the email will be delivered?

On my second problem of sending email with an attachment from my scoring tool application I have gone nowhere so far after searching the net.

ChrisW67
11th July 2012, 23:27
Assuming you are using mailto: URLs to send your mail: Form the RFC (http://ftp.ics.uci.edu/pub/ietf/uri/rfc2368.txt),

The mailto URL is primarily intended for generation of short text messages that are actually the content of automatic processing (such as "subscribe" messages for mailing lists), not general MIME bodies.

You might consider using this offering (http://www.qtcentre.org/threads/44483-SMTP-Client-for-Qt) if the license is acceptable.