Skip to content

Commit

Permalink
Comment out mail to StAPF
Browse files Browse the repository at this point in the history
  • Loading branch information
JanLuca committed Nov 27, 2017
1 parent 27654d2 commit 612276e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/stapf/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 612276e

Please sign in to comment.