Send mail to multiple receiver with HTML mailto [duplicate]
Asked Answered
E

1

70

Possible Duplicate: Emailing to multiple recipients with HTML Mailto: not working

I want to send with 1 HTML link a mail to multiple (100) recievers...

<a href="mailto:[email protected]; [email protected]; [email protected]">Send</a>

This link doesn't work. It do nothing when I press the link.

Evaginate answered 7/12, 2012 at 14:42 Comment(6)
Use comma instead of semicolon?Metaplasia
@CyberDude: also with comma it don't work. There are about 100 mails...Evaginate
@Evaginate does it work with one?Metaplasia
might be good candidate to go for distribution list / email groups. Just a thought.Okechuku
I have a similar situation. The mailto: I have is being populated by a member database, nearly 100 people. The mailto link exists to allow all members, create a mass email to reach all members. If we are unable to use mailto for this quantity of members, is different method to deliver the same result?Meri
You can set each and every part of an email. Here's a tool I built to make it dead simple: mailto.now.sh. You'll want to make use of everyone else's advice of the "," to delimit multiple recipients 👌Erma
I
91

"There are no safe means of assigning multiple recipients to a single mailto: link via HTML. There are safe, non-HTML, ways of assigning multiple recipients from a mailto: link."

http://www.sightspecific.com/~mosh/www_faq/multrec.html

For a quick fix to your problem, change your ; to a comma , and eliminate the spaces between email addresses

<a href='mailto:[email protected],[email protected]'>Email Us</a>
Infundibuliform answered 7/12, 2012 at 14:45 Comment(11)
also with comma it don't work. There are about 100 mails...Evaginate
@Evaginate This appears to be client specific. Using semi colons works for me using IE and Outlook.Cristalcristate
RFC 6068 (tools.ietf.org/html/rfc6068) has this definition of the to field: to = addr-spec *("," addr-spec ). I understand this as a way of defining multiple recipients, separated by a comma.Shew
Be careful with this, as ; does not work on mac.Agamogenesis
should work in OutlookDrab
I have 2 cases where using ; causes mac mail client to stop working, and ending in an endless loop where it is trying to send to and invalid mail address. Which caused the mail provider to mark their account as being spam. DO NOT USE is my recommendation.Apathetic
To try and gather some data, try the example link here, and report back your email client and if it succeeds or fails to add multiple emails: codepen.io/jesstelford/pen/zeKgdg?editors=1000Repudiate
Gmail on Android works successfully using commas.Repudiate
Apple Mail on OSX works successfully using commas.Repudiate
It works fine using commas, Thunderbird on Ubuntu.Livengood
doesn't work with my outlookMiltiades

© 2022 - 2024 — McMap. All rights reserved.