Open vatsake opened 23 hours ago
Thank you for reporting this issue!
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Thank you!
Laravel Version
11.24.1
PHP Version
8.3.6
Database Driver & Version
No response
Description
In my AppServiceProvider boot method I have
I have a job that sends an email.
Steps To Reproduce
If sending email like this:
dispatch(new SendEmail(subject: 'test', to: 'Not.John.Doe@mail.com', content: 'test'));
The email will be sent to alwaysTo address.If dispatching like this:
dispatch_sync(new SendEmail(subject: 'test', to: 'Not.John.Doe@mail.com', content: 'test'));
The email will NOT be sent to alwaysTo address...BTW I'm using octane, so it might be 1 reason why it doesn't work.