From 612276e9bb8af1d87cfcf6732e04ac63b87505c1 Mon Sep 17 00:00:00 2001 From: janluca Date: Mon, 27 Nov 2017 10:06:56 +0100 Subject: [PATCH] Comment out mail to StAPF --- app/stapf/helpers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/stapf/helpers.py b/app/stapf/helpers.py index e301832..9fc5e09 100644 --- a/app/stapf/helpers.py +++ b/app/stapf/helpers.py @@ -29,9 +29,9 @@ def send_batch_mails(batch): msg.attach(batch.decision.filename, "application/pdf", fp.read()) conn.send(msg) - msg = Message(batch.subject, recipients=[current_app.config['MAIL_STAPF']], - body=batch.message, sender=current_app.config['MAIL_STAPF']) - with current_app.open_resource(batch.decision.file_path) as fp: - msg.attach(batch.decision.filename, "application/pdf", fp.read()) - conn.send(msg) + #msg = Message(batch.subject, recipients=[current_app.config['MAIL_STAPF']], + # body=batch.message, sender=current_app.config['MAIL_STAPF']) + #with current_app.open_resource(batch.decision.file_path) as fp: + # msg.attach(batch.decision.filename, "application/pdf", fp.read()) + #conn.send(msg)