diff --git a/controle_cotisation/main.py b/controle_cotisation/main.py index 66d4183..c67c474 100755 --- a/controle_cotisation/main.py +++ b/controle_cotisation/main.py @@ -332,9 +332,10 @@ def validate(member): os.system("cd {} && pdflatex {}".format(WORKDIR+"/validé/", filename+".tex")) # Preparing mail - mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS) + "\n" - mailtext = get_file_content_all(RECEPT_MAIL).replace("COURRIEL-COTISANT", - answer["email"] + "\n") + mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS).replace("COURRIEL-COTISANT", + answer["email"]) + "\n" + mailtext = get_file_content_all(RECEPT_MAIL).replace("ANNEE-CIVILE", + answer["date"][:4]) mailtattach = get_file_content_all(RECEPT_MAIL_ATTACHMENT) + "\n" # Opening PDF file as binary