author | Fabian Huch <huch@in.tum.de> |
Thu, 31 Oct 2024 14:56:59 +0100 | |
changeset 81287 | f7d7a6a4f857 |
parent 81286 | c2535056434f |
child 81288 | 346290d51e7b |
--- a/src/Pure/General/mail.scala Thu Oct 31 09:24:10 2024 +0100 +++ b/src/Pure/General/mail.scala Thu Oct 31 14:56:59 2024 +0100 @@ -72,7 +72,8 @@ def check(): Unit = { val transport = mail_session.getTransport("smtp") try { - transport.connect(smtp_host, smtp_port, user, password) + transport.connect(smtp_host, smtp_port, + if (user.nonEmpty) user else null, if (password.nonEmpty) password else null) transport.close() } catch {