Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Read mail env variables only when needed (appsmithorg#37660)
Loading env variables at import time doesn't work now since we're importing first, and them loading env variables, after having moved to TypeScript. This PR fixes that in the mailer module. ## Automation /test sanity ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved error handling for email configuration by ensuring environment variables are validated before sending emails. - **Refactor** - Adjusted the scope of several environment variables to enhance code organization and maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information