You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit e41bee9 introduces a way to specify recipient name for email. But the functionality breaks existing possible delivery to multiple users.
Existing functionality was that routeNotificationFor('mail' returns either a string with email "aa@example.com" or array [0=>"aa@example.com", 1=>"bb@example.com"]. The new functionality adds ["Aa"=>"aa@example.com","Bb"=>"bb@example.com"] way to specify recipient names.
But because using collect($recipients)->mapWithKeys, the values without keys get overwritten: [0=>"aa@example.com", 1=>"bb@example.com"] becomes [0=>"bb@example.com"] (because of the way the mapped function works) and notification does not reach all recipients.
This is a bug, and I think some sort of workaround can still fix this.
Correction, The new functionality adds ["aa@example.com"=>"Aa", "bb@example.com"=>"Bb"] way to specify recipient names. I will test out if my proposed solution passes tests.
PaegleK
pushed a commit
to PaegleK/framework
that referenced
this issue
Jul 24, 2018
Description:
Commit e41bee9 introduces a way to specify recipient name for email. But the functionality breaks existing possible delivery to multiple users.
Existing functionality was that
routeNotificationFor('mail'
returns either a string with email"aa@example.com"
or array[0=>"aa@example.com", 1=>"bb@example.com"]
. The new functionality adds["Aa"=>"aa@example.com","Bb"=>"bb@example.com"]
way to specify recipient names.But because using
collect($recipients)->mapWithKeys
, the values without keys get overwritten:[0=>"aa@example.com", 1=>"bb@example.com"]
becomes[0=>"bb@example.com"]
(because of the way the mapped function works) and notification does not reach all recipients.This is a bug, and I think some sort of workaround can still fix this.
maybe:
(confusing variable names)
The text was updated successfully, but these errors were encountered: