473,893 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using "mailto"

I've tried to start the local mail program with

window.open('ma ilto:em***@addr ess.com');

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

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

window.open('ma ilto:e...@addre ss.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('ma ilto:em***@addr ess.com');

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

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 26 '07 #3
In comp.lang.javas cript message <yb************ ********@gigane ws.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('ma ilto:em***@addr ess.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.c om/faq/index.html>.
<URL:http://www.merlyn.demo n.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Mar 27 '07 #4
RobG wrote:
>window.open('m ailto:e...@addr ess.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.javas cript message <yb************ ********@gigane ws.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('ma ilto:em***@addr ess.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.javas cript 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******** ************@gi ganews.com...
Dr J R Stockton said the following on 3/27/2007 8:49 AM:
>In comp.lang.javas cript message <yb************ ********@gigane ws.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('ma ilto:em***@addr ess.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
11447
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 href="mailto:DrTebi@yahoo.com">DrTebi</a> This would work like a regular mailto link in any browser, but wouldn't be visible to spiders if they don't have a function to decode it.
4
7472
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 an email-address. The default value is (for example): "mailto:mymail@here.com". Access2000 correctly inserts that information into the field everytime
2
9703
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. If I do the same thing in Access XP (DoCmd.SendEmail) , there is no problem.
1
2986
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 Environment.NewLine sendkeys <br> and multiple "&body=" Nothing happens with the above.
2
2165
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 the form when completed to an e-mail address; however I want the information from the form to be formatted in a particular way in the e-mails that are submitted. Can someone point me in the right direction here. Thanks Mike
0
2172
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 use System.Diagnostics.Process class in vb.net to start a "Mailto:" + email address. This works fine, however I wanted to expand on this some more when the user had sent the email I wanted to do something afterwards. so looked around and found...
1
6477
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 funtionality was using with outlook as default email client, recently clients migrated to Lotus Notes and it is not working. Body part of mail message will get appended to the subject portion. The problem is with one link in the email body is having ?...
1
3412
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" > <ItemTemplate> <a href='mailto:<%# Eval("email")%>' target="new"><asp:Label ID="email" runat="server" Text='<%# Bind("email")%>'></asp:Label></a>
2
4658
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 the email generated by getURL("mailto..") is fine in my email client. Carriage returns are kept etc and shows how I want it. However when I upload it to the server and run it on the web, the carriage returns are stripped out of the text and all...
0
9987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11245
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8025
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7175
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5859
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6066
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4684
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4281
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.