Attaching file in Windows
-
Hi to all, i'd like to know if someone know how can i send an email with the default email client with attachement.
I've tryed this code:
@
QString fileName="C:\myfile.png";
QDesktopServices::openUrl(QUrl("mailto:?subject=Prova &body=bodybodybody &attach="+fileName));
@Into the definition of fileName there's only 1 slash even if you'll see 4
Thanks.
-
-
It doesn't run.
If would be possible find another solution even mailto should be ok for me.
-
In thunderbird you can use the command line :
thunderbird -compose "to=asd@asd,subject=Prova,body=bodybodybody,attachment='file:///C:/logfile.log'"
"Link...":http://kb.mozillazine.org/Command_line_arguments_(Thunderbird)