|
|
@ -26,7 +26,7 @@ |
|
|
|
:label='$t(`admin:mail.senderName`)' |
|
|
|
required |
|
|
|
:counter='255' |
|
|
|
prepend-icon='mdi-contact-mail' |
|
|
|
prepend-icon='mdi-mailbox' |
|
|
|
) |
|
|
|
v-text-field( |
|
|
|
outlined |
|
|
@ -34,7 +34,7 @@ |
|
|
|
:label='$t(`admin:mail.senderEmail`)' |
|
|
|
required |
|
|
|
:counter='255' |
|
|
|
prepend-icon='mdi-at' |
|
|
|
prepend-icon='mdi-mailbox' |
|
|
|
) |
|
|
|
v-divider |
|
|
|
.overline.pa-4.grey--text {{ $t('admin:mail.smtp') }} |
|
|
@ -66,7 +66,16 @@ |
|
|
|
prepend-icon='mdi-security-network' |
|
|
|
inset |
|
|
|
) |
|
|
|
v-text-field.mt-3( |
|
|
|
v-switch( |
|
|
|
v-model='config.verifySSL' |
|
|
|
:label='$t(`admin:mail.smtpVerifySSL`)' |
|
|
|
color='primary' |
|
|
|
persistent-hint |
|
|
|
:hint='$t(`admin:mail.smtpVerifySSLHint`)' |
|
|
|
prepend-icon='mdi-security-network' |
|
|
|
inset |
|
|
|
) |
|
|
|
v-text-field.mt-8( |
|
|
|
outlined |
|
|
|
v-model='config.user' |
|
|
|
:label='$t(`admin:mail.smtpUser`)' |
|
|
@ -79,7 +88,7 @@ |
|
|
|
v-model='config.pass' |
|
|
|
:label='$t(`admin:mail.smtpPwd`)' |
|
|
|
required |
|
|
|
prepend-icon='mdi-textbox-password' |
|
|
|
prepend-icon='mdi-form-textbox-password' |
|
|
|
type='password' |
|
|
|
) |
|
|
|
|
|
|
@ -147,7 +156,6 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import _ from 'lodash' |
|
|
|
import { get } from 'vuex-pathify' |
|
|
|
import mailConfigQuery from 'gql/admin/mail/mail-query-config.gql' |
|
|
|
import mailUpdateConfigMutation from 'gql/admin/mail/mail-mutation-save-config.gql' |
|
|
|
import mailTestMutation from 'gql/admin/mail/mail-mutation-sendtest.gql' |
|
|
@ -161,6 +169,7 @@ export default { |
|
|
|
host: '', |
|
|
|
port: 0, |
|
|
|
secure: false, |
|
|
|
verifySSL: false, |
|
|
|
user: '', |
|
|
|
pass: '', |
|
|
|
useDKIM: false, |
|
|
@ -172,9 +181,6 @@ export default { |
|
|
|
testLoading: false |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
darkMode: get('site/dark') |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async save () { |
|
|
|
try { |
|
|
@ -186,6 +192,7 @@ export default { |
|
|
|
host: this.config.host || '', |
|
|
|
port: _.toSafeInteger(this.config.port) || 0, |
|
|
|
secure: this.config.secure || false, |
|
|
|
verifySSL: this.config.verifySSL || false, |
|
|
|
user: this.config.user || '', |
|
|
|
pass: this.config.pass || '', |
|
|
|
useDKIM: this.config.useDKIM || false, |
|
|
|