Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print email metadata on preview without body (#663)
Why: * In a setup where one uses a email service with transactional templates or any other mechanism where the system does not actually render the email content but instead triggers an external service to generate the emails, previewing sent emails in a development environment is pretty much useless since nothing is shown. Instead developers have to use the logs to try and parse the relevant email information. This change addresses the issue by: * Including the email information as metadata when the email has no body. This shows the data being sent to external service to generate the email, thus providing a way for developers to check the relevant values in a development environment.
- Loading branch information