feat: add debug logging for SMTP configuration and detailed mail delivery status
Build and Push Multi-Platform Images / build-and-push (push) Failing after 34s

This commit is contained in:
2026-05-06 19:48:29 +02:00
parent 443ab765c9
commit a000e0f5c6
16 changed files with 431 additions and 5 deletions
@@ -0,0 +1,23 @@
import api from './client';
export interface UserSettingsData {
smtpHost: string | null;
smtpPort: number | null;
smtpSecure: boolean;
smtpUser: string | null;
smtpPassSet: boolean;
smtpFrom: string | null;
mailSignatureHtml: string | null;
}
export const userSettingsApi = {
get: () => api.get<UserSettingsData>('/api/user-settings').then((r) => r.data),
update: (data: Partial<UserSettingsData> & { smtpPass?: string }) =>
api.put<UserSettingsData>('/api/user-settings', data).then((r) => r.data),
testSmtp: (cfg: { host: string; port: number; secure: boolean; user: string; pass: string }) =>
api
.post<{ ok: boolean; error?: string }>('/api/user-settings/test-smtp', cfg)
.then((r) => r.data),
};