fix: smtp config

This commit is contained in:
Mohamed Marrouchi
2024-09-18 17:33:12 +01:00
parent 549b946452
commit cc36b16d31
21 changed files with 157 additions and 213 deletions

View File

@@ -111,10 +111,4 @@ export type Settings = {
fallback_message: string[];
fallback_block: string;
};
email_settings: {
mailer: string;
auth_user: string;
auth_pass: string;
from: string;
};
} & Record<string, any>;

View File

@@ -99,56 +99,6 @@ export const settingModels: SettingCreateDto[] = [
},
weight: 6,
},
{
group: 'email_settings',
label: 'from',
value: 'no-reply@domain.com',
type: SettingType.text,
weight: 1,
},
{
group: 'email_settings',
label: 'mailer',
value: 'sendmail',
options: ['sendmail', 'smtp'],
type: SettingType.select,
weight: 2,
},
{
group: 'email_settings',
label: 'host',
value: 'localhost',
type: SettingType.text,
weight: 3,
},
{
group: 'email_settings',
label: 'port',
value: '25',
type: SettingType.text,
weight: 4,
},
{
group: 'email_settings',
label: 'secure',
value: true,
type: SettingType.checkbox,
weight: 5,
},
{
group: 'email_settings',
label: 'auth_user',
value: '',
type: SettingType.text,
weight: 6,
},
{
group: 'email_settings',
label: 'auth_pass',
value: '',
type: SettingType.text,
weight: 7,
},
{
group: 'contact',
label: 'contact_email_recipient',