Sending Email returns "Error: self signed certificate"


#1

I would like to use https://www.npmjs.com/package/maildev for testing outgoing emails. When setting MAIL_URL=smtp://:@localhost:1025and sending an email I got “Error: self signed certificate”. Is there a way to skip the certificate verification for testing purposes?


#2

For anyone else stumbling on this post having this issue, the following worked for me:

if (Meteor.isDevelopment){
   process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
}

Send email without authentification