Indentation matters.
This commit is contained in:
parent
3a63cd771e
commit
83ce739c02
1 changed files with 3 additions and 3 deletions
|
@ -452,10 +452,10 @@ def send_email(fromAddress, toAddress, subject, message, ccAddress=None):
|
|||
|
||||
This will be replaced by sending messages to a log later.
|
||||
'''
|
||||
{% if env == 'staging' %}
|
||||
{% if env == 'staging' %}
|
||||
# Send no email in staging...
|
||||
pass
|
||||
{% else %}
|
||||
{% else %}
|
||||
msg = Message()
|
||||
msg.add_header('To', ','.join(toAddress))
|
||||
msg.add_header('From', fromAddress)
|
||||
|
@ -467,7 +467,7 @@ def send_email(fromAddress, toAddress, subject, message, ccAddress=None):
|
|||
smtp = smtplib.SMTP('bastion')
|
||||
smtp.sendmail(fromAddress, toAddress, msg.as_string())
|
||||
smtp.quit()
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
def notify_users(errors):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue