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] => ceri@test.com [1] => craigj@test.com [2] => danyob@test.com [3] => geoffh@test.com [4] => ianc@test.com [5] => mark.butcher@test.com [6] => mickh@test.com [7] => mike@test.com [8] => stephd@test.com [9] => stuartj@test.com )
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?