Fix registration email

This commit is contained in:
blitzmann 2020-08-25 00:05:20 -04:00
parent f3a3797850
commit b81b8a1dea

View File

@ -128,9 +128,16 @@ def send_registration_mail(e_mail, user_name, default_password, resend=False):
text += "Don't forget to change your password after first login.\r\n" text += "Don't forget to change your password after first login.\r\n"
text += "Sincerely\r\n\r\n" text += "Sincerely\r\n\r\n"
text += "Your Calibre-Web team" text += "Your Calibre-Web team"
WorkerThread.add(None, TaskEmail(_(u'Get Started with Calibre-Web'), None, None, WorkerThread.add(None, TaskEmail(
config.get_mail_settings(), e_mail, None, subject=(u'Get Started with Calibre-Web'),
_(u"Registration e-mail for user: %(name)s", name=user_name), text)) filepath=None,
attachment=None,
settings=config.get_mail_settings(),
recipient=e_mail,
taskMessage=_(u"Registration e-mail for user: %(name)s", name=user_name),
text=text
))
return return