open default MUA with a hyper link

Jp Calderone exarkun at divmod.com
Fri Sep 3 17:18:13 EDT 2004


Yann.K wrote:
> Hello.
> 
> 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)?
> 
> Thank's for your help.
> 


   webbrowser.open("mailto:exarkun at divmod.com") gives me a mozilla 
browser and a mozilla compose window.  I don't know of an existing way 
to do better than that.

   Jp



More information about the Python-list mailing list