Näytä SMTP-portti ja salaus aina mailbox-lomakkeessa
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 <noreply@anthropic.com>
This commit is contained in:
16
index.html
16
index.html
@@ -832,16 +832,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="smtp-custom-fields">
|
<div id="smtp-custom-fields">
|
||||||
<div class="form-group"><label>Palvelin</label><input type="text" id="mailbox-form-smtp-host" placeholder="mail.yritys.fi"></div>
|
<div class="form-group"><label>Palvelin</label><input type="text" id="mailbox-form-smtp-host" placeholder="mail.yritys.fi"></div>
|
||||||
<div class="form-group"><label>Portti</label><input type="number" id="mailbox-form-smtp-port" value="587" placeholder="587"></div>
|
|
||||||
<div class="form-group"><label>Käyttäjätunnus</label><input type="text" id="mailbox-form-smtp-user" placeholder="asiakaspalvelu@yritys.fi"></div>
|
<div class="form-group"><label>Käyttäjätunnus</label><input type="text" id="mailbox-form-smtp-user" placeholder="asiakaspalvelu@yritys.fi"></div>
|
||||||
<div class="form-group"><label>Salasana</label><input type="password" id="mailbox-form-smtp-pass" placeholder="••••••••"></div>
|
<div class="form-group"><label>Salasana</label><input type="password" id="mailbox-form-smtp-pass" placeholder="••••••••"></div>
|
||||||
<div class="form-group"><label>Salaus</label>
|
</div>
|
||||||
<select id="mailbox-form-smtp-encryption">
|
<div class="form-group"><label>Portti</label><input type="number" id="mailbox-form-smtp-port" value="587" placeholder="587"></div>
|
||||||
<option value="tls">STARTTLS</option>
|
<div class="form-group"><label>Salaus</label>
|
||||||
<option value="ssl">SSL</option>
|
<select id="mailbox-form-smtp-encryption">
|
||||||
<option value="none">Ei salausta</option>
|
<option value="tls">STARTTLS</option>
|
||||||
</select>
|
<option value="ssl">SSL</option>
|
||||||
</div>
|
<option value="none">Ei salausta</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2583,10 +2583,10 @@ document.getElementById('btn-save-mailbox').addEventListener('click', async () =
|
|||||||
smtp_from_email: document.getElementById('mailbox-form-smtp-email').value,
|
smtp_from_email: document.getElementById('mailbox-form-smtp-email').value,
|
||||||
smtp_from_name: document.getElementById('mailbox-form-smtp-name').value,
|
smtp_from_name: document.getElementById('mailbox-form-smtp-name').value,
|
||||||
smtp_host: useSame ? imapHost : document.getElementById('mailbox-form-smtp-host').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_user: useSame ? imapUser : document.getElementById('mailbox-form-smtp-user').value,
|
||||||
smtp_password: useSame ? imapPass : document.getElementById('mailbox-form-smtp-pass').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,
|
aktiivinen: true,
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user