Added MAIL_SERVICE settings. Part 2.

Thanks to xet7 !

Fixes #3702
This commit is contained in:
Lauri Ojansivu 2021-08-21 17:54:05 +03:00
parent f03b14a46b
commit 1fadf204c2
4 changed files with 9 additions and 5 deletions

View file

@ -1234,7 +1234,7 @@ if (Meteor.isServer) {
subject: TAPi18n.__('email-invite-subject', params, lang),
text: TAPi18n.__('email-invite-text', params, lang),
})
} else {
} else if (process.env.MAIL_URL !== '') {
Email.send({
to: user.emails[0].address.toLowerCase(),
from: Accounts.emailTemplates.from,