Setting your own smtp for forgotPassword?

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.

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

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

i’m using accounts-password