From e34a3708105aae5b1205669e81862f69f61676b2 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 14 Sep 2022 23:46:16 +0200 Subject: [PATCH] =?UTF-8?q?WIP:=20contr=C3=B4le=20cotisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controle_cotisation/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index cd71cf2..3f8409b 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -105,7 +105,7 @@ def sendmail_with_attachment(headers, data, attachment_header, attachment, endin msg = bytes(headers + "\n", 'utf-8') \ + quopri.encodestring(bytes(data, 'utf-8')) \ + bytes(attachment_header + "\n", 'utf-8') \ - + bytes(attachment, 'base64') \ + + base64(attachment) \ + bytes(ending + "\n", 'utf-8') subprocess.run([SENDMAIL_LOCATION, "-t", "-oi"], input=msg)