Implement email signature setting

This commit is contained in:
Johannes Zellner
2025-03-11 13:13:02 +01:00
parent 5c354db1b2
commit 93e0787911
3 changed files with 77 additions and 0 deletions
+11
View File
@@ -83,6 +83,17 @@ function create() {
if (result.status !== 202) return [result];
return [null];
},
async setMailBanner(domain, text, html) {
let result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/mail/${domain}/banner`, { text, html }, { access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 202) return [result];
return [null];
},
async setEnabled(domain, enabled) {
let result;
try {