what is the best separator to separate multiple emails

前端 未结 3 757
臣服心动
臣服心动 2021-01-01 10:03

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

$mem_email=" ";    
$sql="SELECT email_address FROM employee";
$con         


        
相关标签:
3条回答
  • 2021-01-01 10:55

    Use following code,

    implode(',', $contacts);
    

    above code will give comma separated emails.

    0 讨论(0)
  • 2021-01-01 10:59

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

    See RFC 6068.

    0 讨论(0)
  • 2021-01-01 11:02

    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.

    0 讨论(0)
提交回复
热议问题