php mail bcc multiple recipients
Set your mail
to field to null
, and then implode your $to
array in your headers
$headers .= 'From: SmsGratisan.com <[email protected]>' . "\r\n";
$headers .= 'BCC: '. implode(",", $to) . "\r\n";
mail(null, $title, $content, $headers);