Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emailing to multiple recipients with html Mailto: not working

we have 400 to 500 hundred emails, when we concatenate them and put them in mailto: it does not work, browser automatically adds "..." in between emails and clicking link does not work.

<a href='mailto:[email protected],[email protected]@email.com'>open emails</a>

Is there a maximum length on mailto: attribute ? is there any other way i can open multiple emails ?

like image 551
Salman Aziz Avatar asked Feb 14 '12 14:02

Salman Aziz


People also ask

Why is my mailto link not working in HTML?

If mailto links don't open for you the way they should, a quick look at the system or browser settings should do the job. In Windows, head to Settings -> Apps -> Default apps. Scroll down and pick “Choose default apps by protocol” from the menu. For 'Mailto', choose the client of your choice.

How do I send an HTML email to multiple recipients?

If you want to specify multiple email recipients or predefine the message subject, use the following alternative method: Select the text that you want to make a link. Select the option A webpage or file on the Internet, and type mailto:<address> . For example, mailto:[email protected] .

Can you mailto multiple emails?

By using the MailTo in your href links in HTML files, you can manage multiple recipients in a semicolons seperated format. You can also set a default subject field text for the email. Also it is possible to set the Copy To or the CC field values by typing the recipients for the CC field value.

How do you blindly send an email to multiple recipients?

Blind carbon Copy ('Bcc:') If you're sending an email to multiple recipients who don't need to know each other's email address, use Blind Carbon Copy (Bcc) instead of Carbon Copy (Cc). Click Bcc / Show Bcc - A Bcc field will appear in each new message.


2 Answers

If you need to email more than one (but not hundreds), the correct form should not have spaces but should have semicolons (especially if the users will likely use Outlook).

<a href='mailto:[email protected];[email protected];[email protected]'>Contact us</a>

If you want to automatically include a subject line add "?subject=This is the subject"

<a href='mailto:[email protected];[email protected];[email protected]?subject=Webpage contact'>Contact us</a>
like image 96
webdeb Avatar answered Oct 08 '22 16:10

webdeb


Just to add a bit more detail... What RFC 1738 actually says is

A mailto URL takes the form:

    mailto:<rfc822-addr-spec>

where is (the encoding of an) addr-spec, as specified in RFC 822 [6].

and while RFC2822 may have subsumed RFC822, RFC2822 does not change the addr-spec specification (section 3.4.1) as

 addr-spec   =  local-part "@" domain

More specifically, RFC 1738 does not say the URL takes the form of an RFC822 Address Specification but directly says the encoding of an addr-spec.

It is true that in RFC2822, section 3.4 Address Specification, the definition of group is modified from, in RFC822,

 group       =  phrase ":" [#mailbox] ";"

 mailbox     =  addr-spec                    ; simple address
             /  phrase route-addr            ; name & addr-spec

to

 group           =       display-name ":" [mailbox-list / CFWS] ";"

 display-name    =       phrase

 mailbox-list    =       (mailbox *("," mailbox)) / obs-mbox-list

 mailbox         =       name-addr / addr-spec

which does allow multiple addr-specs, but again, the definition of an addr-spec itself remains unchanged.

I would conclude, then, that while it might work, it is not officially supported.

like image 20
Pendantic Avatar answered Oct 08 '22 16:10

Pendantic