1st bug
Adding header to the message before adding personalization, creates an empty personalization object within the email object, and when you add following personalization with recipients emails, your interface throws error because the first personalization initialized by adding header doesn't contain TO field! Who wrote this code??? Seriously, this is bad design decision...
2nd I dunno missing feature
$personalization->addHeader("key", "value");
doesn't work like we do it for the single email, we need to do:
$personalization->addHeader(\SendGrid\Mail\Header("key", "value"));
just add wrapper to handle it like it's done for the $email->addHeader(key, value)
1st bug
Adding header to the message before adding personalization, creates an empty personalization object within the email object, and when you add following personalization with recipients emails, your interface throws error because the first personalization initialized by adding header doesn't contain TO field! Who wrote this code??? Seriously, this is bad design decision...
2nd I dunno missing feature
doesn't work like we do it for the single email, we need to do:
just add wrapper to handle it like it's done for the
$email->addHeader(key, value)