add pop3 in mail server setting + optional select template

This commit is contained in:
hamid zarghami
2025-09-04 11:27:43 +03:30
parent 2658f06f1c
commit 093ddbf195
3 changed files with 45 additions and 1 deletions
+4
View File
@@ -116,6 +116,10 @@
"setting_imap_description": "تنظیمات IMAP خود را با دقت وارد کنید.",
"imap_server": "IMAP سرور",
"imap_port": "IMAP پورت",
"setting_pop3": "تنظیمات POP3",
"setting_pop3_description": "تنظیمات POP3 خود را با دقت وارد کنید.",
"pop3_server": "POP3 سرور",
"pop3_port": "POP3 پورت",
"encryption": "نوع رمزنگاری",
"record_dns": "رکوردهای DNS",
"record_dns_description": "در این قسمت میتوانید وضعیت رکوردهای DNS سرویس ایمیل خود را بررسی کنید.",
@@ -88,8 +88,10 @@ const AddressForm: FC<AddressFormProps> = ({ selectedAddress, isEditMode, onCanc
password: params.password || undefined,
quota: params.quotaMB ? params.quotaMB * 1024 * 1024 : undefined,
forwarders: forwarders,
templateId: params.templateId,
templateId: params.templateId ? params.templateId : undefined,
}
updateAddress({ id: selectedAddress.id, params: updateParams }, {
onSuccess: (data) => {
toast(data?.data?.message || 'آپدیت با موفقیت انجام شد', 'success')
@@ -100,6 +100,44 @@ const MailServer: FC = () => {
</div>
</div>
</div>
{/* POP3 Settings */}
<div className='mt-9 border-t pt-9'>
<div className='flex xl:flex-row gap-4 flex-col justify-between pb-10'>
<div className='flex-1'>
<div className='xl:text-lg'>
{t('setting.setting_pop3')}
</div>
<div className='xl:text-sm text-xs text-description mt-1.5'>
{t('setting.setting_pop3_description')}
</div>
</div>
<div className='flex-1'>
<Input
label={t('setting.pop3_server')}
value={data?.data?.setupInfo?.pop3Settings?.server || ''}
readOnly
/>
<div className='mt-8'>
<Input
label={t('setting.pop3_port')}
value={data?.data?.setupInfo?.pop3Settings?.port?.toString() || ''}
readOnly
/>
</div>
<div className='mt-8'>
<Input
label={t('setting.encryption')}
value={data?.data?.setupInfo?.pop3Settings?.encryption || ''}
readOnly
/>
</div>
</div>
</div>
</div>
</div>
)
}