laravel-postal icon indicating copy to clipboard operation
laravel-postal copied to clipboard

Headers are not passed to Postal Message

Open a47ae opened this issue 5 years ago • 7 comments

Hey, maybe I setup something wrong, but with the logEmailAgainstModel method set and the 'postal.enable.emaillogging' value set to true I do not get the notifiable_class and notifiable_id headers passed to Postal.

On inspection they do get set on the underlying Swift_Message instance, but get lost during the transformation to a Postal message. If I understood the code correctly the swiftToPostal method of the PostalTransportClass simply does not set any custom headers.

This does not only break the email logging feature, but also does not allow the application to pass any additional headers, which could break some workflows.

a47ae avatar Jul 13 '19 11:07 a47ae