Unable to add BCC with $personalizationIndex #788
Labels
difficulty: medium
fix is medium in difficulty
status: help wanted
requesting help from the community
type: bug
bug in the library
Issue Summary
It's not possible to add CC/BCC when passing a $personalizationIndex.
The issue seems to be caused by the missing $substitutions parameter when calling
addRecipientEmail
inaddCc
andaddBcc
in the Mail class.Error
Fatal error: Uncaught SendGrid\Mail\TypeException: $substitutions must be an array. in ...\vendor\sendgrid\sendgrid\lib\mail\EmailAddress.php on line 162
Technical details:
The text was updated successfully, but these errors were encountered: