màj mail age (rappel)
This commit is contained in:
parent
418aa7b79b
commit
4c8980a377
4 changed files with 30 additions and 59 deletions
|
@ -38,17 +38,17 @@ echecs=[]
|
|||
From = 'ca@crans.org'
|
||||
for To in mailaddrs:
|
||||
cprint(u"Envoi du mail à %s" % To)
|
||||
mailtxt = mail.generate('age', {'To':To, 'From': From})
|
||||
mailtxt = mail.generate('age', {'To':To, 'From': From, 'lang_info': 'English version below',})
|
||||
mailtxt["Reply-To"] = Header("ca@crans.org")
|
||||
|
||||
fichier = open(STATUTS_PATH, 'rb')
|
||||
part = MIMEApplication(fichier.read(), 'pdf')
|
||||
part.add_header('Content-Disposition', 'attachment', filename="statuts.pdf")
|
||||
mailtxt.attach(part)
|
||||
fichier = open(RI_PATH, 'rb')
|
||||
part = MIMEApplication(fichier.read(), 'pdf')
|
||||
part.add_header('Content-Disposition', 'attachment', filename="reglement.pdf")
|
||||
mailtxt.attach(part)
|
||||
# fichier = open(STATUTS_PATH, 'rb')
|
||||
# part = MIMEApplication(fichier.read(), 'pdf')
|
||||
# part.add_header('Content-Disposition', 'attachment', filename="statuts.pdf")
|
||||
# mailtxt.attach(part)
|
||||
# fichier = open(RI_PATH, 'rb')
|
||||
# part = MIMEApplication(fichier.read(), 'pdf')
|
||||
# part.add_header('Content-Disposition', 'attachment', filename="reglement.pdf")
|
||||
# mailtxt.attach(part)
|
||||
|
||||
if PREV:
|
||||
print mailtxt.as_string()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue