Fix sésame link in emails when working locally.

This commit is contained in:
Alexis M 2019-10-02 19:16:36 +02:00
parent 3cfc7ac6e2
commit af0ab5cb82

View file

@ -33,6 +33,7 @@ def send(to, subject, body, html=None, copy=None, attachments=None):
msg.attach(MIMEText(html, "html"))
if not config.SEND_EMAILS:
body = body.replace('https', 'http')
return print("Sending email", str(body))
try:
server = smtplib.SMTP_SSL(config.SMTP_HOST)