Mercurial > libervia-backend
diff sat/plugins/plugin_misc_account.py @ 3055:82eee2c383d9
plugin account: fixed email sending
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 Oct 2019 16:15:34 +0200 |
parents | ab2696e34d29 |
children | 0c29155ac68b |
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)