Mercurial > libervia-backend
changeset 3055:82eee2c383d9
plugin account: fixed email sending
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 Oct 2019 16:15:34 +0200 |
parents | 92f8baec5e4f |
children | 49c7bc3afb2b |
files | sat/plugins/plugin_misc_account.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_misc_account.py Fri Oct 11 16:15:09 2019 +0200 +++ b/sat/plugins/plugin_misc_account.py Fri Oct 11 16:15:34 2019 +0200 @@ -313,7 +313,8 @@ # there is no email when an existing XMPP account is used email=email or "<no email>", ) - d_admin = sat_email.sendEmail(self.host, admins_emails, subject, body) + d_admin = sat_email.sendEmail( + self.host.memory.config, admins_emails, subject, body) admins_emails_txt = ", ".join(["<" + addr + ">" for addr in admins_emails]) d_admin.addCallbacks( @@ -341,7 +342,7 @@ # XXX: this will not fail when the email address doesn't exist # FIXME: check email reception to validate email given by the user # FIXME: delete the profile if the email could not been sent? - d_user = sat_email.sendEmail(self.host, [email], subject, body) + d_user = sat_email.sendEmail(self.host.memory.config, [email], subject, body) d_user.addCallbacks( lambda __: log.debug( "Account creation confirmation sent to <{}>".format(email)