Closed Elidrake closed 7 years ago
I believe I see the issue, actually. It appears this line here is no longer valid:
if ($this instanceof Mailable && env('MAIL_DRIVER') == "sendgrid") {
Per the 5.3 upgrade guide, under Configuration - Caching and ENV, if you cache the configuration (as most do on production), you cannot access env values using env. Instead, they are attached to the container, and can be accessed in this case via config('mail.driver').
I've put up a PR that makes it all work whether or not you cache the config.
https://github.com/s-ichikawa/laravel-sendgrid-driver/pull/61
Thanks !
I am using the guide in the readme for attaching the Sendgrid trait, but I'm finding that the above code does not actually attach the category for viewing in Sendgrid - as in, after sending off one of these emails, it doesn't actually have the category attached to it in the Sendgrid interface.
I am using the V3 API.