{% extends "layout-settings.html" %} {% set active_page = "settings" %} {% set active_settings = "alerts" %} {% set help_page = ["https://kizniche.github.io/Mycodo/Configuration-Settings/#alert-settings", dict_translation['settings']['title'] + ': ' + dict_translation['alert']['title']] %} {% block title %} - {{dict_translation['settings']['title'] + ': ' + dict_translation['alert']['title']}}{% endblock %} {% block settings %}

{{_('Alerts Settings')}}

{{form_email_alert.hidden_tag()}}
If a port is not specified, the default port for SSL (465), TLS (587), or unencrypted (25) will be used. If you require a non-standard port, enter it in the port field.
{{form_email_alert.smtp_host.label(class_='control-label')}}
{{form_email_alert.smtp_host(class_='form-control', value=smtp.host)}}
{{form_email_alert.smtp_port.label(class_='control-label')}}
{{form_email_alert.smtp_port(class_='form-control',type="number", value=smtp.port,**{'title':_('Leave blank to use default port for protocol')})}}
{{form_email_alert.smtp_protocol.label(class_='control-label')}}
{{form_email_alert.smtp_user.label(class_='control-label')}}
{{form_email_alert.smtp_user(class_='form-control', value=smtp.user,**{'title':_('Usually your full email address')})}}
{{form_email_alert.smtp_password.label(class_='control-label')}}
{{form_email_alert.smtp_password(class_='form-control',**{'title':_('Only enter a password here if you wish to change it')})}}
{{form_email_alert.smtp_from_email.label(class_='control-label')}}
{{form_email_alert.smtp_from_email(class_='form-control', value=smtp.email_from)}}
{{form_email_alert.smtp_hourly_max.label(class_='control-label')}}
{{form_email_alert.smtp_hourly_max(class_='form-control',type="number", value=smtp.hourly_max, **{'title':_('Maximum number of alerts that can be emailed per hour.')})}}
{{form_email_alert.save(class_='btn btn-primary')}}
{{form_email_alert.send_test_to_email(class_='form-control')}}
{{form_email_alert.send_test(class_='btn btn-primary')}}
{% endblock %}