open default MUA with a hyper link

Jonathan Ellis jbellis at gmail.com
Fri Sep 3 17:44:31 EDT 2004


Yann.K wrote:
> I would like to do a hypertext link on a GUI, which launch a per
default
> mail user agent (with the "to" header documented).
> To launch an url in a web browser i use webbrowser.open(url).
> Do exist an equivalent command to run the per default MUA (like ie
> webbrowser.mail_open(toto at example.com)?
>>> import os
>>> os.startfile("mailto:jbellis at gmail.com")

-Jonathan




More information about the Python-list mailing list