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
471 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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" …
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

758 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

20 Experts available now in Live!

Get 1:1 Help Now