テストメールは管理者アドレスに送信するように

This commit is contained in:
syuilo
2019-07-04 21:08:47 +09:00
parent 16b81fff38
commit dfd991a6c6
2 changed files with 1 additions and 10 deletions

View File

@@ -426,16 +426,8 @@ export default Vue.extend({
},
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', {
to: to,
to: this.maintainerEmail,
subject: 'Test email',
text: 'Yo'
}).then(x => {