testversand

This commit is contained in:
2026-02-24 01:33:52 +01:00
parent 6a8d5720c5
commit 6f7ac43a0b
5 changed files with 102 additions and 4 deletions

View File

@@ -949,13 +949,15 @@ export function initEditor() {
    let html = '<option value="">Standard (System)</option>';
    smtpProfileOptions.forEach(opt => {
      const label = opt.label || opt.smtp_host || 'Profil';
      html += `<option value="${opt.id}">${escapeHtml(label)}</option>`;
      const suffix = opt.is_default ? ' (Standard)' : '';
      html += `<option value="${opt.id}">${escapeHtml(label + suffix)}</option>`;
    });
    sendSmtpProfile.innerHTML = html;
    if (previous && smtpProfileOptions.some(opt => String(opt.id) === previous)) {
      sendSmtpProfile.value = previous;
    } else {
      sendSmtpProfile.value = '';
      const def = smtpProfileOptions.find(opt => opt.is_default);
      sendSmtpProfile.value = def ? String(def.id) : '';
    }
    if (sendSmtpProfileHint) {
      sendSmtpProfileHint.classList.toggle('hidden', smtpProfileOptions.length > 0);