I am using wp_mail to send an email to multiple recipients.
my mail function looks like this:
wp_mail($group_emails, 'my subject', 'my message', $headers);
$group_emails
is an array of email address's and gets outputed like this:
$group_emails = Array ( [0] => [email protected] [1] => [email protected] [2] => [email protected] [3] => [email protected] [4] => [email protected] [5] => [email protected] [6] => [email protected] [7] => [email protected] [8] => [email protected] [9] => [email protected] )
For some reason the email does not get sent to the above emails? If i remove the multiple recipients and just put a single email address, it works fine!
Any suggestions?