Reputation: 39
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 file://path_to_file
.
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?
Upvotes: 3
Views: 3214
Reputation: 2086
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
Upvotes: 0
Reputation: 31504
I would use this python recipe for a portable and sound way to send mails with attachments in python.
Upvotes: 1