[buddypress-trac] [BuddyPress Trac] #8159: bp_send_email not sending emails to all if passing multiple email ids since 4.0.0 update

buddypress-trac noreply at wordpress.org
Sun Jun 28 18:04:27 UTC 2020


#8159: bp_send_email not sending emails to all if passing multiple email ids since
4.0.0 update
---------------------------------------------+-----------------------------
 Reporter:  alexhal                          |       Owner:  DJPaul
     Type:  defect (bug)                     |      Status:  assigned
 Priority:  high                             |   Milestone:  Awaiting
                                             |  Review
Component:  Emails                           |     Version:  2.5.0
 Severity:  major                            |  Resolution:
 Keywords:  reporter-feedback needs-testing  |
---------------------------------------------+-----------------------------
Changes (by imath):

 * keywords:  reporter-feedback => reporter-feedback needs-testing


Comment:

 Hi @bouncingsprout and @alexhal

 Reading inline comments + code inside the `BP_Email_Recipient` class, when
 you want to send an email to a list of email addresses, you need to use an
 array keyed by email addresses containing the user name for it to work.
 For example :
 {{{
 $tos = array(
         'user1 at ma.il' => 'User 1',
         'user2 at ma.il' => 'User 2',
         'user3 at ma.il' => 'User 3',
 );
 }}}

 I haven't tested though, could you test using such an associative array to
 see if it's fixing your issue ?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8159#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list