[Qt-interest] Clean way of invoking the default email client using Qt (equivalent of clicking on a "mailto") ?

KC Jones kc at asperasoft.com
Thu Nov 19 18:51:05 CET 2009


Using mailto: urls is your best bet.  You can specify a message body
that way.  The syntax is described in great detail at the IETF site
here: http://www.ietf.org/rfc/rfc2368.txt

There may be some risk of having the system reject or mangle your url
request due to spam filters.  Not too sure about all that...

On Thu, Nov 19, 2009 at 4:58 AM, Manish Chakravarty
<manishchaks at gmail.com> wrote:
> Hello All,
> I have a QTextEdit class with some HTML in it.
> I want my Qt application to do the following , given an email address.
> - Launch the default email client
> - Populate the "To" filed with the email address
> - Leave the subject line empty
> - Populate the body of the email with the HTML inside the QTextEdit.
> I know webpages do (1) & (2) mentioned above using "mailto" links.
> Wondering how to get the equivalent behavior with Qt 4.5
> Thanks in advance!
> --
> Manish Chakravarty
> Blog: http://manish-chaks.livejournal.com/
> LinkedIn: http://www.linkedin.com/in/manishchakravarty
> Twitter: http://twitter.com/ManishChaks
> Facebook: http://www.facebook.com/manish.chakravarty
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>



More information about the Qt-interest-old mailing list