Add test email sending dialog
This commit is contained in:
@@ -226,6 +226,17 @@ function create() {
|
||||
if (result.status !== 200) return [result];
|
||||
return [null];
|
||||
},
|
||||
async sendTestMail(domain, mailToAddress) {
|
||||
let result;
|
||||
try {
|
||||
result = await fetcher.post(`${API_ORIGIN}/api/v1/mail/${domain}/send_test_mail`, { to: mailToAddress }, { access_token: accessToken });
|
||||
} catch (e) {
|
||||
return [e];
|
||||
}
|
||||
|
||||
if (result.status !== 202) return [result];
|
||||
return [null];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user