Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best Separator to Separate Multiple Emails?

Tags:

php

email

bcc

I am using mailto link to populate bcc of users default email program.

$mem_email=" ";     $sql="SELECT email_address FROM employee"; $contacts = $db->query($sql); while($contact = $db->fetchByAssoc($contacts)) {     if($contact['email_address']!="" && $contact['email_address']!=NULL)     {         $mem_email.=$contact['email_address'].", ";     } }  header("Location: mailto:?bcc={$mem_email}");  

What is the best separator to separate multiple emails in bcc field: , or ; ?

In my case, I am using ,.

like image 373
Mansoor Jafar Avatar asked Aug 25 '12 07:08

Mansoor Jafar


People also ask

How Should email addresses be separated?

In most email programs, it's common practice to separate the names of email recipients with commas. However, in Outlook, the semicolon is used to separate email recipients. If you'd rather use a comma, change the Outlook settings.

How do I send a mass email individually?

Open Gmail and sign in. Open a new email and write the message you intend to send to your contact list. Click BCC in the top-right of your Compose window. Add all the email addresses to which you intend to send the message.

How do I separate email addresses in BCC?

In the BCC field, type the email address of your BCC recipient. For multiple addresses or a long list of recipients, you can separate each with a comma, space, or by pressing the enter key. Now, you can compose the message and then click “Send” when done.


2 Answers

The separator should be a comma (,) and there should not be a space.

See RFC 6068.

like image 73
Alnitak Avatar answered Sep 28 '22 09:09

Alnitak


Here's a late caveat in case anybody needs it:

Even though RFC explicitly recommends a comma, Microsoft Outlook will use the "list separator character" defined in the regional settings. Your mailto links may not work correctly for your Windows + Outlook users whose systems are configured with a different list separator such as semicolons. Outlook will simply refuse to split the e-mail addresses with commas.

Just something to keep in mind.

like image 35
Ishmaeel Avatar answered Sep 28 '22 10:09

Ishmaeel