mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
Fix sésame link in emails when working locally.
This commit is contained in:
parent
3cfc7ac6e2
commit
af0ab5cb82
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue