[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 14 12:26:30 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  |
-------------------------------+------------------------------

Comment (by bouncingsprout):

 I'm having the same issue. I have an input field where users can enter
 comma-separated email addresses. My plugin successfully removes any
 spaces, and explodes into an array using the commas. This passes an array
 of email addresses to bp_send_email just as @alexhal above.

 However, bp_send_email only successfully delivers to the first address in
 the array.

 @imath, it looks like you have used a name<address> syntax in your test,
 which looks like it may have come from an array of user IDs? In that case,
 I would expect your test to have succeeded as you can pass an array of IDs
 to the function. Perhaps the ticket title is misleading, as @alexhal isn't
 passing IDs at all, but an array of email address strings?

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


More information about the buddypress-trac mailing list