Is there a way to disable MAIL_URL, or stop Meteor printing emails in the console?


#1

We send a lot of transactional emails at key points and it makes development hard when it clogs the node console each time a user signs up or does anything that triggers an email from us.

All I see is hundreds of lines of HTML in the console that I’d rather not see. I tried setting it to a Mailgun sandbox account, but that causes errors if the user is not on the account. I don’t really want to hook up to our production url for development since it will hurt our domain score. I could take another domain that I own, but that’s a bit of a hassle to set up on Mailgun. I hope there’s a simpler way, but I can’t find it.


#2
if (Meteor.isDevelopment) {
  Email.send = v => v
}