WIP: contrôle cotisation
This commit is contained in:
parent
5084450960
commit
e34a370810
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue