mail setup
This commit is contained in:
@@ -40,6 +40,65 @@ require dirname(__DIR__) . '/../structure/layout_start.php';
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section class="section-card" data-role="admin">
|
||||
<div class="flex items-center justify-between mb-3">
|
||||
<h4>Versandprofile (SMTP)</h4>
|
||||
<button type="button" id="btn-smtp-profile-add" class="btn">+ Versandprofil</button>
|
||||
</div>
|
||||
<p class="text-sm text-slate-600 mb-3">Mehrere SMTP-Profile fuer unterschiedliche Absender oder Server.</p>
|
||||
<div class="overflow-auto">
|
||||
<table class="team-table" id="smtpProfileTable">
|
||||
<thead>
|
||||
<tr><th>Bezeichnung</th><th>Server</th><th>Benutzer</th><th>Absender</th><th class="text-right">Aktionen</th></tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<form id="smtpProfileForm" class="space-y-3 mt-4 hidden">
|
||||
<input type="hidden" name="profile_id">
|
||||
<label class="block text-sm text-slate-600">Bezeichnung
|
||||
<input type="text" name="label" class="input mt-1" placeholder="Profil-Name">
|
||||
</label>
|
||||
<div class="grid md:grid-cols-2 gap-3">
|
||||
<label class="block text-sm text-slate-600">SMTP-Server
|
||||
<input type="text" name="smtp_host" class="input mt-1" placeholder="smtp.example.com">
|
||||
</label>
|
||||
<label class="block text-sm text-slate-600">Port
|
||||
<input type="number" name="smtp_port" class="input mt-1" placeholder="587">
|
||||
</label>
|
||||
<label class="block text-sm text-slate-600">Verschluesselung
|
||||
<select name="smtp_secure" class="input mt-1">
|
||||
<option value="">Keine</option>
|
||||
<option value="tls">TLS</option>
|
||||
<option value="ssl">SSL</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="block text-sm text-slate-600">Benutzername
|
||||
<input type="text" name="smtp_user" class="input mt-1" placeholder="user@example.com">
|
||||
</label>
|
||||
<label class="block text-sm text-slate-600">Passwort
|
||||
<input type="password" name="smtp_pass" class="input mt-1" placeholder="••••••••">
|
||||
</label>
|
||||
<label class="inline-flex items-center gap-2 text-xs text-slate-500 mt-6">
|
||||
<input type="checkbox" name="smtp_pass_clear" value="1"> Passwort loeschen
|
||||
</label>
|
||||
<label class="block text-sm text-slate-600">Absender (E-Mail)
|
||||
<input type="email" name="from_email" class="input mt-1" placeholder="no-reply@example.com">
|
||||
</label>
|
||||
<label class="block text-sm text-slate-600">Absender (Name)
|
||||
<input type="text" name="from_name" class="input mt-1" placeholder="EmailTemplate">
|
||||
</label>
|
||||
<label class="block text-sm text-slate-600">Reply-To (optional)
|
||||
<input type="email" name="reply_to" class="input mt-1" placeholder="support@example.com">
|
||||
</label>
|
||||
</div>
|
||||
<div class="flex justify-end gap-2">
|
||||
<button type="button" id="smtpProfileFormCancel" class="btn">Abbrechen</button>
|
||||
<button type="submit" class="btn">Speichern</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section class="section-card" data-role="admin">
|
||||
<h4>Integrationen, Downloads & Tokens</h4>
|
||||
<p class="text-sm text-slate-600 mb-4">Die Dateien enthalten automatisch deine aktuellen Tokens. Nach dem Speichern neuer Tokens bitte die Dateien erneut herunterladen.</p>
|
||||
|
||||
Reference in New Issue
Block a user