[Interest] Send e-mail with Qt
Harri Pasanen
harri at mpaja.com
Tue May 29 10:55:16 CEST 2012
On 05/29/2012 10:28 AM, Thiago Macieira wrote:
> On segunda-feira, 28 de maio de 2012 16.10.31, Yuvraaj Kelkar wrote:
>> It depends on how you want to send an email.
>>
>> You can either do it the easy way:
>> http://qt-project.org/doc/qt-4.8/qdesktopservices.html#openUrl
>>
>> Or the really involved and hard way:
>> http://labs.qt.nokia.com/2009/09/21/introducing-qmf-an-advanced-mobile-messa
>> ging-framework/
> Two more options:
>
> 1) use QProcess and launch /usr/sbin/sendmail
>
> 2) use QTcpSocket and connect to the user's SMTP server port, authenticate and
> send the email manually
>
One more option:
Send mail from Python, which provides necessary plumbing to make it
straight forward.
Python you can either call with QProcess, or embed python with PythonQt
(http://pythonqt.sourceforge.net/)
/Harri
More information about the Interest
mailing list