Support the ongoing development of Laravel.io →
posted 10 years ago
Mail

Crazy frustrated so posting this here to see if anybody can help.

I have a custom artisan command registered for my app, which works just fine.

I have various event listeners in my app, which work just fine.

One of these event listeners listens for a certain event to get fired and sends an email when this happens. Other points throughout my app can fire the event and the email will send properly.

When my custom artisan command is run, that same event gets fired... AND it gets hit (I can produce log records showing the event has been fired, and can see data from inside the event listener), but the email never actually sends.

I'm desperate here :)

Thanks, Jesse

Last updated 2 years ago.
0

Nevermind this. Finally figured out it's because the overridden mail config for some reason gets ignored when run from artisan. Specifying the config in the mail config file itself enables the mail to be sent when going out from artisan -- but still, no errors or anything else when attempting to use the overridden mail config. Strange. Not sure why the overridden config is getting ignored, but whatever, I've been on this for way too long now and need to get moving along :)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.