From 2da63262a7531c5bb8bdb7bd41efccb0a80b65e9 Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Tue, 10 Mar 2026 23:14:20 +0200 Subject: [PATCH] =?UTF-8?q?N=C3=A4yt=C3=A4=20SMTP-portti=20ja=20salaus=20a?= =?UTF-8?q?ina=20mailbox-lomakkeessa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Portti ja salaus tarvitaan aina (IMAP=993/SSL vs SMTP=587/TLS), joten ne näkyvät nyt checkboxin tilasta riippumatta. "Käytä samoja tunnuksia" piilottaa vain palvelimen, käyttäjän ja salasanan. Co-Authored-By: Claude Opus 4.6 --- index.html | 16 ++++++++-------- script.js | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index faa52b0..d903a5e 100644 --- a/index.html +++ b/index.html @@ -832,16 +832,16 @@
-
-
- -
+
+
+
+
diff --git a/script.js b/script.js index 251c929..4ed88dc 100644 --- a/script.js +++ b/script.js @@ -2583,10 +2583,10 @@ document.getElementById('btn-save-mailbox').addEventListener('click', async () = smtp_from_email: document.getElementById('mailbox-form-smtp-email').value, smtp_from_name: document.getElementById('mailbox-form-smtp-name').value, smtp_host: useSame ? imapHost : document.getElementById('mailbox-form-smtp-host').value, - smtp_port: useSame ? 587 : (parseInt(document.getElementById('mailbox-form-smtp-port').value) || 587), + smtp_port: parseInt(document.getElementById('mailbox-form-smtp-port').value) || 587, smtp_user: useSame ? imapUser : document.getElementById('mailbox-form-smtp-user').value, smtp_password: useSame ? imapPass : document.getElementById('mailbox-form-smtp-pass').value, - smtp_encryption: useSame ? 'tls' : document.getElementById('mailbox-form-smtp-encryption').value, + smtp_encryption: document.getElementById('mailbox-form-smtp-encryption').value, aktiivinen: true, }; try {