473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

open default MUA with a hyper link

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(to**@example.com)?

Thank's for your help.

--
Yann.K
Jul 18 '05 #1
9 2057
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(to**@example.com)?

Thank's for your help.

webbrowser.open("mailto:ex*****@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
Jul 18 '05 #2
Jp Calderone wrote:
Yann.K wrote:
webbrowser.open("mailto:ex*****@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.

Yes i tried already that, but it isn't very nice: two window for one
required...

Regards.
--
Yann.K
Jul 18 '05 #3
"Jp Calderone" wrote:

[opening the default MUA]
webbrowser.open("mailto:ex*****@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.


How can I use this syntax in order to specify also the body of the
mail?

--
XPN :: http://xpn.altervista.org

Jul 18 '05 #4
Nemesis <ne*@nowhere.invalid> wrote:
"Jp Calderone" wrote:

[opening the default MUA]
webbrowser.open("mailto:ex*****@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.


How can I use this syntax in order to specify also the body of the
mail?


Study the mailto: syntax on any HTML reference, e.g.
http://docs.intellifuzz.com/readmore.php?p=39
Alex
Jul 18 '05 #5
"Alex Martelli" wrote:

[mailto trick]
How can I use this syntax in order to specify also the body of the
mail?

Study the mailto: syntax on any HTML reference, e.g.
http://docs.intellifuzz.com/readmore.php?p=39


Thank you for the link.
I tried that syntax, but it seems that Internet Explorer
doesn't support multiline bodies :-/

--
XPN :: http://xpn.altervista.org

Jul 18 '05 #6
Nemesis <ne*@nowhere.invalid> wrote:
"Alex Martelli" wrote:

[mailto trick]
How can I use this syntax in order to specify also the body of the
mail?

Study the mailto: syntax on any HTML reference, e.g.
http://docs.intellifuzz.com/readmore.php?p=39


Thank you for the link.
I tried that syntax, but it seems that Internet Explorer
doesn't support multiline bodies :-/


Your choice is then to either upgrade to a better browser (IE has been
stagnant in features for years, resting on its laurels) or to drive IE
more intimately and "proprietarily" -- with win32com you can probably
make it turn somersaults, although your hair will whiten considerably
while you learn how to do so.
Alex
Jul 18 '05 #7
"Alex Martelli" wrote:
Thank you for the link.
I tried that syntax, but it seems that Internet Explorer
doesn't support multiline bodies :-/


Your choice is then to either upgrade to a better browser (IE has been
stagnant in features for years, resting on its laurels) or to drive IE
more intimately and "proprietarily" -- with win32com you can probably
make it turn somersaults, although your hair will whiten considerably
while you learn how to do so.


Actually I use Firebird ;-)
I'm studying this syntax in order to implement it in XPN, the newsreader
I'm writing. I'd like to use it when the article has a

"Followup-To: poster".

So I need a simple and multiplatform solution.

However I found that I can use an encoded form of the newline (%0A) that
works with IE (I haven't tried yet with different browsers).I think I'll
use the urllib.quote function in order to obtain this coding.

--
XPN :: http://xpn.altervista.org

Jul 18 '05 #8
Nemesis <ne*@nowhere.invalid> wrote:
"Alex Martelli" wrote:
Thank you for the link.
I tried that syntax, but it seems that Internet Explorer
doesn't support multiline bodies :-/
Your choice is then to either upgrade to a better browser (IE has been
stagnant in features for years, resting on its laurels) or to drive IE
more intimately and "proprietarily" -- with win32com you can probably
make it turn somersaults, although your hair will whiten considerably
while you learn how to do so.


Actually I use Firebird ;-)


Nice database engine, but not much of a browser. Maybe you mean
Firefox;-?
I'm studying this syntax in order to implement it in XPN, the newsreader
I'm writing. I'd like to use it when the article has a

"Followup-To: poster".

So I need a simple and multiplatform solution.

However I found that I can use an encoded form of the newline (%0A) that
works with IE (I haven't tried yet with different browsers).I think I'll
use the urllib.quote function in order to obtain this coding.


Sounds sensible, offhand.
Alex
Jul 18 '05 #9
Mentre io pensavo ad una intro simpatica "Alex Martelli" scriveva:
> Your choice is then to either upgrade to a better browser (IE has been
> stagnant in features for years, resting on its laurels) or to drive IE
> more intimately and "proprietarily" -- with win32com you can probably
> make it turn somersaults, although your hair will whiten considerably
> while you learn how to do so.

Actually I use Firebird ;-)

Nice database engine, but not much of a browser. Maybe you mean
Firefox;-?


You are right, but once Firefox was called Firebird, and before that it
was called Phoenix :-)
I'm studying this syntax in order to implement it in XPN, the newsreader
I'm writing. I'd like to use it when the article has a
"Followup-To: poster".
So I need a simple and multiplatform solution.
However I found that I can use an encoded form of the newline (%0A) that
works with IE (I haven't tried yet with different browsers).I think I'll
use the urllib.quote function in order to obtain this coding.

Sounds sensible, offhand.


I changed my mind of course :-D
Now I'm working to implement a simple mail support in XPN using smptlib.
:-)

--
Tutti possono vincere, sempreche' non esista un secondo posto.

|\ | |HomePage : http://nem01.altervista.org
| \|emesis |XPN (my nr): http://xpn.altervista.org

Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
3
by: VIJAY KUMAR | last post by:
Hi pals, I am using 2 web forms (pages). In first page, i have Datagrid control and on second page i have a hyper link control to the first page and Add value to the data grid/Database. ...
1
by: Bill | last post by:
I have a datagrid that holds a whole list of records about computers. I need one column that is a hyperlink that when clicked will show the details of that computer model. The hyper link needs to...
2
by: Sheshadrinath R | last post by:
Hello, I want to open an excel workbook, which is present in the server. I want to open this excel in the browser using ASP.NET. May I know, how can I do this? Will the File.Open() command work...
1
by: doris1202004 | last post by:
I have divide three frames: 1 is the menu which show the choice a,b,c. on the left side this is a typer-link 2 is the body frame which show the img on the right frame 3 is the sentense frame...
3
by: ajaspersonal | last post by:
"i want to change font_style (hyper link<a href...>text</a>) normal to italics.when load a page" this is my problem but that label included in one 'USERCONTROL' This user controls may...
1
by: simons | last post by:
Hi All, I'm trying to add a hyper link to one of the filed in my DataList control. I added a link button but could not bound it to an ID filed and then link it to the page that i need. I'm...
0
by: mclewell | last post by:
i created an html hyper link field and clicking on the data in the field produces a security warning pop up requiring a yes click before the link is activated, is there a way to turn off this...
1
by: =?Utf-8?B?Q29kZVNsaW5nZXI=?= | last post by:
I plan to build my own 2008 Server/Hyper-V system and will not be using one of the tested Dell or HP systems from the release notes and could use some pointers as to my assumnptions and answers to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.