增加是否开启 STARTTLS字段,修复outlook邮箱发送报错问题
parent
4c59df63a6
commit
c500322123
|
@ -35,6 +35,14 @@ export const columns: BasicColumn[] = [
|
||||||
return useRender.renderDict(text, DICT_TYPE.INFRA_BOOLEAN_STRING)
|
return useRender.renderDict(text, DICT_TYPE.INFRA_BOOLEAN_STRING)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '是否开启 STARTTLS',
|
||||||
|
dataIndex: 'starttlsEnable',
|
||||||
|
width: 180,
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
return useRender.renderDict(text, DICT_TYPE.INFRA_BOOLEAN_STRING)
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
|
@ -71,36 +79,53 @@ export const formSchema: FormSchema[] = [
|
||||||
label: '邮箱',
|
label: '邮箱',
|
||||||
field: 'mail',
|
field: 'mail',
|
||||||
required: true,
|
required: true,
|
||||||
|
labelWidth: 150,
|
||||||
component: 'Input'
|
component: 'Input'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '用户名',
|
label: '用户名',
|
||||||
field: 'username',
|
field: 'username',
|
||||||
required: true,
|
required: true,
|
||||||
|
labelWidth: 150,
|
||||||
component: 'Input'
|
component: 'Input'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '密码',
|
label: '密码',
|
||||||
field: 'password',
|
field: 'password',
|
||||||
required: true,
|
required: true,
|
||||||
|
labelWidth: 150,
|
||||||
component: 'InputPassword'
|
component: 'InputPassword'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'SMTP 服务器域名',
|
label: 'SMTP 服务器域名',
|
||||||
field: 'host',
|
field: 'host',
|
||||||
required: true,
|
required: true,
|
||||||
|
labelWidth: 150,
|
||||||
component: 'Input'
|
component: 'Input'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'SMTP 服务器端口',
|
label: 'SMTP 服务器端口',
|
||||||
field: 'port',
|
field: 'port',
|
||||||
required: true,
|
required: true,
|
||||||
|
labelWidth: 150,
|
||||||
component: 'Input'
|
component: 'Input'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '是否开启 SSL',
|
label: '是否开启 SSL',
|
||||||
field: 'sslEnable',
|
field: 'sslEnable',
|
||||||
required: true,
|
required: true,
|
||||||
|
labelWidth: 150,
|
||||||
|
defaultValue: false,
|
||||||
|
component: 'Switch',
|
||||||
|
componentProps: {
|
||||||
|
options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING, 'boolean')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '是否开启 STARTTLS',
|
||||||
|
field: 'starttlsEnable',
|
||||||
|
required: true,
|
||||||
|
labelWidth: 150,
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
component: 'Switch',
|
component: 'Switch',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
|
|
Loading…
Reference in New Issue