You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
When sending a notification via mail, there is no way to add custom headers to it.
I understand notifications are meant to be simple messages, but for example, when using Mandrill you need to send a custom header if you want your messages to be sent through one of your subaccounts. This is impossible AFAICS for notification emails and that messes hard with my Mandrill account.
A similar function to the one on the Mailable class (withSwiftMessage) allowing to access the SwiftMessage would fix this.
Steps To Reproduce:
Try to attach custom headers when sending a notification via email.
The text was updated successfully, but these errors were encountered:
@andrew-za You can return a mailable from your notification and then in your mailable class you can add a public $callbacks property with an array of closures that access the \Swift_Message through that. Would that solve your problem? Ex.
Laravel Version: 5.3.9
PHP Version: 7.0.10
Database Driver & Version: mysql 10.1.17-MariaDB
Description:
When sending a notification via mail, there is no way to add custom headers to it.
I understand notifications are meant to be simple messages, but for example, when using Mandrill you need to send a custom header if you want your messages to be sent through one of your subaccounts. This is impossible AFAICS for notification emails and that messes hard with my Mandrill account.
A similar function to the one on the Mailable class (withSwiftMessage) allowing to access the SwiftMessage would fix this.
Steps To Reproduce:
Try to attach custom headers when sending a notification via email.
The text was updated successfully, but these errors were encountered: