Solved

HTML "mailto:" tag.  How do you get it to email to more than one address?  what is the proper syntax?

Posted on 2007-12-03
8
487 Views
Last Modified: 2012-05-05
Currently it looks like this:

<form method=post enctype="text/plain" action="mailto:xyz@abcd.com">

I don't know how to get it to send to a second email though.  Thanks.
0
Comment
Question by:Sp0cky
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 16

Expert Comment

by:BongSoo
ID: 20395431
I could be wrong, but I don't think you can code it for multiple addresses? Most likely you will need to use an alias or scripting, but I'll wait and see if someone proves me wrong...
0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20395445
I don't know if it's possible, it might depend on how the mail client handles the data.

Email addresses are generally separated by semicolons when you can supply more than one, so you could try like this:

action="mailto:xyz@abcd.com;asdf@zyxy.net;qwerty@onetwothree.zb"
0
 
LVL 7

Expert Comment

by:Rob Siddell
ID: 20395486
i just tested the following code and it worked fine with my outlook.


<a href="mailto:abc@abc.com; def@abc.com">mail</a>

Open in new window

0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 7

Expert Comment

by:Rob Siddell
ID: 20395494
not the exact same usage but if it works there i would think it would work with the form action.
0
 
LVL 13

Accepted Solution

by:
R7AF earned 500 total points
ID: 20395560
Be careful! Outlook uses ; as separator, but other mail clients use a comma. Test this before using it. How about using something like this:


<a href="mailto:abc@abc.com?cc=def@abc.com">mail</a>

Open in new window

0
 

Author Comment

by:Sp0cky
ID: 20395675
Thanks guys but I am trying to mail a form using the form post method.  This is not just an email link by itself.  Let me be a little more descriptive:

"<form method=post enctype="text/plain" action="mailto:xyz@abcd.com">" used with this:

"<input type="submit" value="submit message">"
0
 
LVL 29

Expert Comment

by:Göran Andersson
ID: 20395742
How you specify the email address/es would not differ between using a link and a form. Both use the email client of the client computer.
0
 

Author Closing Comment

by:Sp0cky
ID: 31412321
Thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change Background Color of Website 5 29
Background video not displaying in Internet Explorer. 3 37
Diminish Pop-up  in 3 seconds 7 45
really easy css change help please 4 17
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question