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
Build and Push Multi-Platform Images / build-and-push (push) Failing after 34s
This commit is contained in:
@@ -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),
|
||||
};
|
||||
Reference in New Issue
Block a user