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
479 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now