${_('Email Configuration')}

<% elems = [ (_('Email prefix'), c.rhodecode_ini.get('email_prefix'), ''), (_('Email from'), c.rhodecode_ini.get('app_email_from'), ''), (_('SMTP server'), c.rhodecode_ini.get('smtp_server'), ''), (_('SMTP username'), c.rhodecode_ini.get('smtp_username'), ''), (_('SMTP password'), '%s chars' % len(c.rhodecode_ini.get('smtp_password', '')), ''), (_('SMTP port'), c.rhodecode_ini.get('smtp_port'), ''), (_('SMTP use TLS'), c.rhodecode_ini.get('smtp_use_tls'), ''), (_('SMTP use SSL'), c.rhodecode_ini.get('smtp_use_ssl'), ''), ] %>
%for dt, dd, tt in elems:
${dt}:
${dd}
%endfor
${_('You can adjust those settings in [DEFAULT] section of .ini file located at')}:
${c.rhodecode_ini.get('__file__')}

${_('Test Email')}

${h.secure_form(h.route_path('admin_settings_email_update'), request=request)}
${h.text('test_email', size=60, placeholder=_('enter valid email'))}
${_('Send an auto-generated email from this server to above email...')}
${h.submit('send',_('Send'),class_="btn")}
${h.end_form()}