mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 12:20:21 +01:00
テストメールは管理者アドレスに送信するように
This commit is contained in:
parent
16b81fff38
commit
dfd991a6c6
2 changed files with 1 additions and 10 deletions
|
@ -1390,7 +1390,6 @@ admin/views/instance.vue:
|
||||||
smtp-user: "SMTPユーザー"
|
smtp-user: "SMTPユーザー"
|
||||||
smtp-pass: "SMTPパスワード"
|
smtp-pass: "SMTPパスワード"
|
||||||
test-email: "テスト"
|
test-email: "テスト"
|
||||||
test-email-to: "テストメールの送信先アドレス"
|
|
||||||
serviceworker-config: "ServiceWorker"
|
serviceworker-config: "ServiceWorker"
|
||||||
enable-serviceworker: "ServiceWorkerを有効にする"
|
enable-serviceworker: "ServiceWorkerを有効にする"
|
||||||
serviceworker-info: "プッシュ通知を行うには有効する必要があります。"
|
serviceworker-info: "プッシュ通知を行うには有効する必要があります。"
|
||||||
|
|
|
@ -426,16 +426,8 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
async testEmail() {
|
async testEmail() {
|
||||||
const { canceled, result: to } = await this.$root.dialog({
|
|
||||||
title: this.$t('test-email-to'),
|
|
||||||
input: {
|
|
||||||
type: 'email',
|
|
||||||
},
|
|
||||||
showCancelButton: true
|
|
||||||
});
|
|
||||||
if (canceled) return;
|
|
||||||
this.$root.api('admin/send-email', {
|
this.$root.api('admin/send-email', {
|
||||||
to: to,
|
to: this.maintainerEmail,
|
||||||
subject: 'Test email',
|
subject: 'Test email',
|
||||||
text: 'Yo'
|
text: 'Yo'
|
||||||
}).then(x => {
|
}).then(x => {
|
||||||
|
|
Loading…
Reference in a new issue