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
477 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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 …

863 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

23 Experts available now in Live!

Get 1:1 Help Now