# HG changeset patch # User Goffi # Date 1570803334 -7200 # Node ID 82eee2c383d9109b06e5cab7e35da4693beeae2c # Parent 92f8baec5e4fd0ddaa87edadcfeb4714df81b982 plugin account: fixed email sending diff -r 92f8baec5e4f -r 82eee2c383d9 sat/plugins/plugin_misc_account.py --- 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 "", ) - 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)