From 007cf33e884cc5a7d686e4529f36c7a936838b32 Mon Sep 17 00:00:00 2001 From: Peter Date: Fri, 19 Dec 2014 22:00:11 +0200 Subject: [PATCH] Remove standard mailer port lines This lines got committed by accident. They do actually nothing, as SplitHostPort will give an error if port is not given. --- modules/mailer/mailer.go | 4 ---- 1 file changed, 4 deletions(-) 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,