Search code examples
meteornitrousiopassword-recoveryreset-passwordtelescope

Meteor reset password does not send email to user for password reset


Meteor reset password does not send email to user for password reset.

There are not any errors.

In telescope app after clicking on "Email Reset Link" button it shows "Email sent", however the user does not receive an email for password reset.

The problem had been solved partially. Because, after MAIL_URL installation (+Mailgun) it is still does not work. The problem can be related to nitrous.io, because nitrous.io box doesn't support SMTP.

Does someone had installed meteor app on nitrous.io and have mail notifications? Does some of the nitrous.io developers can suggest something?


Solution

  • You need to set up an SMTP service (Meteor's own hosting uses Mailgun, but others are available), and set the environment variable MAIL_URL to match the details of your service, as documented here.

    Ideally do this in the Nitrious.io environment before Meteor starts, but you can do it on startup if required as I assume it won't be required immediately:

    process.env.MAIL_URL = 'smtp://USERNAME:[email protected]:587'; // (or equivalent for another provider)