开发者

How do I open the default mail program with a subject in Python in a cross-platform way?

开发者 https://www.devze.com 2022-12-29 20:55 出处:网络
I am trying to add the ability to send mails using the default mail client from my python app. It can be done with the w开发者_Python百科ebbrowser module by opening a \'mailto:\' URI.But, is there a

I am trying to add the ability to send mails using the default mail client from my python app.

It can be done with the w开发者_Python百科ebbrowser module by opening a 'mailto:' URI. But, is there a better and direct way to do this like java's Desktop.mail(URI).

Thanks in advance.


As far as my research goes, there is no proper solution. We currently use this solution, which is the recipe by Antonio Valentino with a few modifications.

You're interested in the mailto function in that file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号