I'm trying to open a email-client (eg thunderbird) to send an email with an attachment. I have tried to open the client with
webbrowser.open('mailto:[...]?attachment="path_to_file"'), but there was no attachment. I also tried to write
I have searched in the web for a solution, but there I only found tutorials how to send emails with SMTP. Do you have an idea?
I would use <a href="http://code.activestate.com/recipes/511443-cross-platform-startfile-and-mailto-functions/" rel="nofollow">this</a> python recipe for a portable and sound way to send mails with attachments in python.Answer2:
You can achieve the same result by calling thunderbird via system commands.
Here is a thread that I started. I got a good reply:
<a href="https://stackoverflow.com/questions/25698821/python-open-thunderbird-to-write-new-mail-with-attached-file/25705516#25705516" rel="nofollow">Python: Open Thunderbird to write new mail with attached file</a>