473,394 Members | 1,785 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,394 software developers and data experts.

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 2665
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
2
by: Jan Nielsen | last post by:
Hi I build a string of email receivers Then I send it using System.Diagnostics.Process.Start("mailto:" But when the string is longer than 2024 characters I receive an Access Denied exception....
1
by: Chad Dittmer | last post by:
I'd appreciate anyone's help with this. I'm trying to open an email window and have it auto fill from vb.net. It works, except I can't get line breaks in the body. I've tried: vbLf vbCrLf...
2
by: Robin | last post by:
I have set up a form with some basic input data, e.g. Name, Address, Telephone number and a few selections from drop-down menus; and a submit button. I am using "mailto" to send the contents of...
0
by: Pete | last post by:
Hi All, I'm new to this so please correct me if I'm wrong. I have written a small program which holds details for task information. the program holds an email address, i created a button which...
1
by: abilashnn | last post by:
'm attempting to send a mailto: and include a link in the body. Has anyone done this? I have one problem with this. One appln have a link to send an email using “mailto:”. Previosly this...
1
by: Chicagoboy27 | last post by:
It seems when I use GridView1.Columns.Insert(2, nameColumn); to dynamically insert a column into a grid I loose all items that are bound using <asp:TemplateField HeaderText="E-Mail" >...
2
by: GregBeagle | last post by:
Windows XP I have a simple form from which I want to generate an email with the contents of the form. I use carriage returns to format the content for readability. When I test it on my computer...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.