Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build Mailables when mocking mails #44492

Closed
wants to merge 3 commits into from

Conversation

TheClassified
Copy link

According to the documentation you should be able to fetch the variables (from, cc, etc) defined during the build of the Mailable, however this never gets run when mocking the mail.

This PR should fix #44486 and might also be relevant for #44462

First time submitting a PR to Laravel - so please let me know if there's something more I can do.

@taylorotwell
Copy link
Member

No plans to change this logic on a patch release. People will soon be able to test this stuff easier.

@TheClassified TheClassified deleted the fake-mailables-build branch October 6, 2022 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

From address is not set for Mailables when using Mail:fake()
2 participants