diff --git a/modules/mailer/mailer.go b/modules/mailer/mailer.go index 211ad59cdda1..f17e5c27360c 100644 --- a/modules/mailer/mailer.go +++ b/modules/mailer/mailer.go @@ -73,10 +73,6 @@ func sendMail(settings *setting.Mailer, from string, recipients []string, msgCon return err } - if len(port) == 0 { - port = "587" - } - tlsconfig := &tls.Config{ InsecureSkipVerify: settings.SkipVerify, ServerName: host,