WIP: contrôle cotisation

This commit is contained in:
Adrien Bourmault 2022-09-14 23:46:16 +02:00
parent 5084450960
commit e34a370810
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ def sendmail_with_attachment(headers, data, attachment_header, attachment, endin
msg = bytes(headers + "\n", 'utf-8') \ msg = bytes(headers + "\n", 'utf-8') \
+ quopri.encodestring(bytes(data, 'utf-8')) \ + quopri.encodestring(bytes(data, 'utf-8')) \
+ bytes(attachment_header + "\n", 'utf-8') \ + bytes(attachment_header + "\n", 'utf-8') \
+ bytes(attachment, 'base64') \ + base64(attachment) \
+ bytes(ending + "\n", 'utf-8') + bytes(ending + "\n", 'utf-8')
subprocess.run([SENDMAIL_LOCATION, "-t", "-oi"], input=msg) subprocess.run([SENDMAIL_LOCATION, "-t", "-oi"], input=msg)