From af0ab5cb82250ed9ff83c72d4130862f8d3852a5 Mon Sep 17 00:00:00 2001 From: Alexis M Date: Wed, 2 Oct 2019 19:16:36 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20s=C3=A9same=20link=20in=20emails=20when?= =?UTF-8?q?=20working=20locally.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- copanier/emails.py | 1 + 1 file changed, 1 insertion(+) diff --git a/copanier/emails.py b/copanier/emails.py index e29f8a3..4f7ce44 100644 --- a/copanier/emails.py +++ b/copanier/emails.py @@ -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)