Skip to content Skip to sidebar Skip to footer

Python Open Email Client With Attachment

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'

Solution 1:

I would use this python recipe for a portable and sound way to send mails with attachments in python.


Solution 2:

You can achieve the same result by calling thunderbird via system commands.

Here is a thread that I started. I got a good reply:

Python: Open Thunderbird to write new mail with attached file


Post a Comment for "Python Open Email Client With Attachment"