From 65ece3292a9a9c8fd304cbec7de181dcb24090f7 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Thu, 8 Dec 2016 21:34:12 +0900 Subject: [PATCH] (refs #1337)Use the specified port number as the SSL port number as well --- src/main/scala/gitbucket/core/util/Notifier.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/scala/gitbucket/core/util/Notifier.scala b/src/main/scala/gitbucket/core/util/Notifier.scala index 24a883d34..25318994d 100644 --- a/src/main/scala/gitbucket/core/util/Notifier.scala +++ b/src/main/scala/gitbucket/core/util/Notifier.scala @@ -109,6 +109,7 @@ class Mailer(private val smtp: Smtp) extends Notifier { } smtp.ssl.foreach { ssl => email.setSSLOnConnect(ssl) + email.setSslSmtpPort(smtp.port.get.toString) } smtp.fromAddress .map (_ -> smtp.fromName.getOrElse(context.loginAccount.get.userName))