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 ,
.
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.
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.
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.
The separator should be a comma (,
) and there should not be a space.
See RFC 6068.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With