Closed zupolgec closed 3 years ago
Doesn't this just remove the debug feature for queued mail?
Yes, because this feature is not available on queued Mailables.
This package could provide a modified HeloMailable
to extend, but what is the point of debugging locally the content of enqueued Mailables?
Why has this not been merged yet? @mpociot
Thank you!
Fixes #5
There is a bug in Laravel (https://github.com/laravel/framework/issues/17283) that prevents
Mailable
with callbacks to be serialized for queueing.So when a
Mailable
implementsShouldQueue
we don't add headers.Also changed the check from
MailableContract
toMailable
since theapplyDebugHeaders
function expects a Mailable (that has aview
property).