open default MUA with a hyper link

Thierry S. thierry.s at free.fr
Mon Sep 6 04:00:26 EDT 2004


Jonathan  Ellis wrote:

> 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
"AttributeError: 'module' object has no attribute 'startfile'"?..
-- 
Thierry S.



More information about the Python-list mailing list