Setting your own smtp for forgotPassword?


#1

I saw some tutorials and wrote this code on Server.

Meteor.startup(() => {
    process.env.MAIL_URL = "smtp://postmaster%40xxxxx.com:xxxxxxxxxx@smtp.mailgun.org:587";
});

But the email I received for password reset comes from meteor.com. What should I do to send forgot Password emails from my own email?

Thanks.


#2

Are you using useraccounts or accounts-password package? If so, you can configure “From” email like this:

Accounts.emailTemplates.from = "name@domain.com";

#3

i’m using accounts-password