forked from FoundKeyGang/FoundKey
Fix SMTP (#3433)
* Fix: SMTP local relay
* Fix SMTP SSL description
* ✌️
This commit is contained in:
parent
15efbfb244
commit
3bde4285eb
3 changed files with 6 additions and 4 deletions
|
@ -1134,7 +1134,8 @@ admin/views/instance.vue:
|
||||||
email-config-info: "メールアドレス確認やパスワードリセットの際に使われます。"
|
email-config-info: "メールアドレス確認やパスワードリセットの際に使われます。"
|
||||||
enable-email: "メール配信を有効にする"
|
enable-email: "メール配信を有効にする"
|
||||||
email: "メールアドレス"
|
email: "メールアドレス"
|
||||||
smtp-use-ssl: "SMTPサーバーはSSLを使用"
|
smtp-secure: "SMTP接続に暗黙的なSSL/TLSを使用する"
|
||||||
|
smtp-secure-info: "STARTTLS使用時はオフにします。"
|
||||||
smtp-host: "SMTPホスト"
|
smtp-host: "SMTPホスト"
|
||||||
smtp-port: "SMTPポート"
|
smtp-port: "SMTPポート"
|
||||||
smtp-user: "SMTPユーザー"
|
smtp-user: "SMTPユーザー"
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
<ui-input v-model="smtpUser" :disabled="!enableEmail">{{ $t('smtp-user') }}</ui-input>
|
<ui-input v-model="smtpUser" :disabled="!enableEmail">{{ $t('smtp-user') }}</ui-input>
|
||||||
<ui-input v-model="smtpPass" :disabled="!enableEmail">{{ $t('smtp-pass') }}</ui-input>
|
<ui-input v-model="smtpPass" :disabled="!enableEmail">{{ $t('smtp-pass') }}</ui-input>
|
||||||
</ui-horizon-group>
|
</ui-horizon-group>
|
||||||
<ui-switch v-model="smtpSecure" :disabled="!enableEmail">{{ $t('smtp-use-ssl') }}</ui-switch>
|
<ui-switch v-model="smtpSecure" :disabled="!enableEmail">{{ $t('smtp-secure') }}<span slot="desc">{{ $t('smtp-secure-info') }}</span></ui-switch>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<header>summaly Proxy</header>
|
<header>summaly Proxy</header>
|
||||||
|
|
|
@ -73,10 +73,11 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
|
||||||
host: meta.smtpHost,
|
host: meta.smtpHost,
|
||||||
port: meta.smtpPort,
|
port: meta.smtpPort,
|
||||||
secure: meta.smtpSecure,
|
secure: meta.smtpSecure,
|
||||||
auth: {
|
ignoreTLS: true,
|
||||||
|
auth: meta.smtpUser != null ? {
|
||||||
user: meta.smtpUser,
|
user: meta.smtpUser,
|
||||||
pass: meta.smtpPass
|
pass: meta.smtpPass
|
||||||
}
|
} : undefined
|
||||||
});
|
});
|
||||||
|
|
||||||
const link = `${config.url}/vefify-email/${code}`;
|
const link = `${config.url}/vefify-email/${code}`;
|
||||||
|
|
Loading…
Reference in a new issue