Allow Email functionality to be completely disabled #1703
Replies: 2 comments
-
Would be nice not to create mock credentials on every test run, currently I have to use |
Beta Was this translation helpful? Give feedback.
-
I have a scenario where this feature would have been useful. In my case I want to run Payload in a setting where it doesn't have direct access to the Internet. The database, media storage and server all run in this controlled network setting. For production I'll add an email transport to the setup, but for the dev/test environment at least I'm fine without it. For me, Payload failed to start since the server didn't have network access to register the mock email. I ended up patching in this diff locally, and it seems to be running OK from my limited testing on a fresh install. If you'd like I can open a PR with the above diff and some documentation. Some feedback on what you'd like to see covered by tests would be helpful :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, if an email transport isn't specified a mock email handler is used. We should provide a way to disable email functionality completely for testing and security purposes.
Beta Was this translation helpful? Give feedback.
All reactions