Menu

Sponsored By: Password Angel - Share passwords, API keys, credentials and more with secure, single-use links.

The "email" channel is not supported when using Symfony Messenger

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 🤦‍♂️

Enjoyed this article?

Thank you for reading this article! If you found the information valuable and enjoyed your time here, consider supporting my work by buying me a coffee. Your contribution helps fuel more content like this. Cheers to shared knowledge and caffeine-fueled inspiration!

Buy me a coffee

Originally published at https://chrisshennan.com/blog/the-email-channel-is-not-supported-when-using-symfony-messenger

Subscribe to my newsletter...

... and receive the musings of an aspiring #indiehacker directly to your inbox once a month.

These musings will encompass a range of subjects such as Web Development, DevOps, Startups, Bootstrapping, #buildinpublic, SEO, personal opinions, and experiences.

I won't send you spam and you can unsubscribe at any time.