Magalliu's avatar

Lumen still sending mails to mailtrap after changed completely the configurations

For testing purposes I've used mailtrap to see if sending email works. Now that I have change all the configuration and cleared the cache php artisan cache:clear, the email still being sent to mailtrap.

Locally this changes are reflected and everything works as expected but live on server the email are sent only to mailtrap. I cannot perform anything beside php artisan cache:clear because I'm using Lumen and not Laravel.

Has someone any idea what can be the problem in this case?

0 likes
10 replies
bait-dept's avatar

If you're using a queue to send emails you need to also restart the queue.

Magalliu's avatar

I tried that, executing php artisan queue:restart and not working... I still receive email on mailtrap

Magalliu's avatar

on live server because I have no problem on local

Magalliu's avatar

Since I am on a live server maybe should I talk to sysadmin so he can restart the supervisor? Maybe the supervisor needs to be restarted to, or the queue need to be restarted directly from supervisor...

ousid's avatar

Try to delete your cache manually by deleting bootstrap/cache files

Magalliu's avatar

Yeah thank you for your answer but it's about Lumen and not Laravel. On Lumen bootstrap/cache does not exist but bootstrap folder contains the app.php...

Magalliu's avatar
Magalliu
OP
Best Answer
Level 2

For everyone struggling with this, the supervisor needs to be restarted in case that new configurations are not recognized.

I asked my sysadmin to restart the supervisor and the app is working with the new configurations.

Happy coding!

1 like

Please or to participate in this conversation.