So let’s say I’m using chimp for some tests, and I’m testing features which in a production app will send out emails. How can I make the emails only console.log out instead of actually getting sent from functions such as Accounts.sendVerificationEmail
?
Feels kind of bad to put those all around the app…
? Accounts.sendVerificationEmail
: console.log;```
**EDIT:** Also, this will not create a verificationToken etc. which I want!
If you clear the MAIL_URL
environment variable, email goes to stdout:
If MAIL_URL is not set, Email.send outputs the message to standard output instead.
Thanks, I’ll try that!