The right way for a mail tenant aware #561
masterix21
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have discovered a bug using the package with a custom mail switch task in the last weeks.
I was using a custom task to change the sender information like so:
When the server load increased, tenant1 sent many emails with the sender of tenant2.
Why? Due to the queue concurrency issue, two horizon processes share the same app instance.
To solve the issue, you should handle the MessageSending event dispatched by Laravel when your app sends an email.
So, now you rock 🎉
Beta Was this translation helpful? Give feedback.
All reactions