diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index c3d76687f..2d660117d 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -184,12 +184,12 @@
{{if .MailerEnabled}}
{{.i18n.Tr "admin.config.mailer_name"}}
{{.Mailer.Name}}
- {{if not .Mailer.UseSendmail}}
+ {{if eq .Mailer.MailerType "smtp"}}
{{.i18n.Tr "admin.config.mailer_disable_helo"}}
{{.i18n.Tr "admin.config.mailer_host"}}
{{.Mailer.Host}}
- {{else}}
+ {{else if eq .Mailer.MailerType "sendmail"}}
{{.i18n.Tr "admin.config.mailer_use_sendmail"}}
{{.i18n.Tr "admin.config.mailer_sendmail_path"}}