Getting this error message?
The "email" channel is not supported.
I was getting the above error and the trace log showed
{
"namespace": "Symfony\\Component\\Notifier",
"short_class": "Notifier",
"class": "Symfony\\Component\\Notifier\\Notifier",
"type": "->",
"function": "getChannels",
"file": "/app/vendor/symfony/notifier/Notifier.php",
"line": 47,
"args": [
[
"object",
"App\\Notification\\MyNotification"
],
[
"object",
"Symfony\\Component\\Notifier\\Recipient\\NoRecipient"
]
]
},
Can you see what it is yet? Yep! - I've not added a recipient to the notification 🤦♂️
Originally published at https://chrisshennan.com/blog/the-email-channel-is-not-supported-when-using-symfony-messenger