cleanup: merge SMTP fields into single fieldset, rename to Emails

- Renamed section from 'Relay SMTP' to 'Emails'
- Merged 'Expéditeur par défaut' fieldset into the main SMTP grid
- Removed separate 'from_email' field: now uses username as from_email
- Changed username label from 'Nom d\'utilisateur' to 'Adresse e-mail'
  with placeholder xamxam@erg.be and type=email
- from_name and notify_email now inline in the main grid after password
This commit is contained in:
Pontoporeia
2026-05-11 11:35:02 +02:00
parent 83a5a508ea
commit d000f9e1d4
3 changed files with 33 additions and 29 deletions

View File

@@ -111,7 +111,7 @@ if ($section === 'formulaire_restrictions') {
'port' => $_POST['smtp_port'] ?? 587,
'encryption' => $_POST['smtp_encryption'] ?? 'tls',
'username' => $_POST['smtp_username'] ?? '',
'from_email' => $_POST['smtp_from_email'] ?? '',
'from_email' => $_POST['smtp_username'] ?? '', // same as username
'from_name' => $_POST['smtp_from_name'] ?? 'XAMXAM',
'notify_email' => $_POST['smtp_notify_email'] ?? '',
];