469,356 Members | 2,644 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

Using "mailto"

I've tried to start the local mail program with

window.open('mailto:em***@address.com');

but that doesn't work. Is this somehow possible?

O. Wyss
Mar 26 '07 #1
6 2515
On Mar 27, 6:17 am, Otto Wyss <otw...@bluewin.chwrote:
I've tried to start the local mail program with

window.open('mailto:e...@address.com');

but that doesn't work. Is this somehow possible?
Search the archives, they're a great resource:

<URL:
http://groups.google.com.au/group/co...ddb216560dbe68
>
--
Rob

Mar 26 '07 #2
Otto Wyss said the following on 3/26/2007 4:17 PM:
I've tried to start the local mail program with

window.open('mailto:em***@address.com');

but that doesn't work. Is this somehow possible?
No. Not reliably anyway.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 26 '07 #3
In comp.lang.javascript message <yb********************@giganews.com>,
Mon, 26 Mar 2007 17:35:10, Randy Webb <Hi************@aol.composted:
>Otto Wyss said the following on 3/26/2007 4:17 PM:
>I've tried to start the local mail program with
window.open('mailto:em***@address.com');
but that doesn't work. Is this somehow possible?

No. Not reliably anyway.
It worked just now with Turnpike. Turnpike is notoriously standards-
observing. Therefore it probably ought to work. So the answer perhaps
should be "Yes, but not reliably" (since I assume that you know that it
does not work in at least one situation, apart from the obvious one).

But is should certainly be impossible to send E-mail from Javascript,
regardless of content, without calling for human intervention (except in
a system specifically so configured), since that would be open to abuse.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Mar 27 '07 #4
RobG wrote:
>window.open('mailto:e...@address.com');

but that doesn't work. Is this somehow possible?

Search the archives, they're a great resource:

<URL:
http://groups.google.com.au/group/co...ddb216560dbe68
Well it's not that easy, the mail adresses are first computed into a
distribution list, so it's not possible to use "<a href...". And I want
to use the local mail program and not "mail()". Currently I compute the
distribution list and show it in a field and the user has to copy/paste
this list into his mailer. I thought there must be a better solution.

O. Wyss
Mar 27 '07 #5
Dr J R Stockton said the following on 3/27/2007 8:49 AM:
In comp.lang.javascript message <yb********************@giganews.com>,
Mon, 26 Mar 2007 17:35:10, Randy Webb <Hi************@aol.composted:
>Otto Wyss said the following on 3/26/2007 4:17 PM:
>>I've tried to start the local mail program with
window.open('mailto:em***@address.com');
but that doesn't work. Is this somehow possible?
No. Not reliably anyway.

It worked just now with Turnpike.
I never said it wouldn't. If you spent as much time trying to understand
what you read as you do trying to contradict what you read, that you
didn't understand, then you wouldn't waste so much time.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 28 '07 #6
"Randy Webb" <Hi************@aol.comwrote in message
news:ge********************@giganews.com...
Dr J R Stockton said the following on 3/27/2007 8:49 AM:
>In comp.lang.javascript message <yb********************@giganews.com>,
Mon, 26 Mar 2007 17:35:10, Randy Webb <Hi************@aol.composted:
>>Otto Wyss said the following on 3/26/2007 4:17 PM:
I've tried to start the local mail program with
window.open('mailto:em***@address.com');
but that doesn't work. Is this somehow possible?
No. Not reliably anyway.

It worked just now with Turnpike.

I never said it wouldn't. If you spent as much time trying to understand what you read
as you do trying to contradict what you read, that you didn't understand, then you
wouldn't waste so much time.
Hehe, sorry, but that totally reminded me of Bilbo in The Lord of the Rings: Fellowship of
the Ring.

"I don't know half of you half as well as I should like; and I like less than half of you
as well as you deserve."

OK, ignore me.

-Lost
Mar 30 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Chad Dittmer | last post: by
1 post views Thread by Chicagoboy27 | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.