diff options
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/Settings/SmtpStore.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/store/modules/Settings/SmtpStore.js b/src/store/modules/Settings/SmtpStore.js index 195f245a..4be69783 100644 --- a/src/store/modules/Settings/SmtpStore.js +++ b/src/store/modules/Settings/SmtpStore.js @@ -87,12 +87,13 @@ const SmtpStore = { }, async sendTestMessage(_, payload) { - let url = `/redfish/v1/Smtp/SendMail`; - for (let key in payload) { - url += `&${key}=${payload[key]}`; - } - - return await api.get(url); + return await api + .post('/redfish/v1/Smtp/SendMail', payload) + .catch((error) => console.log(error)); + // let url = `/redfish/v1/Smtp/SendMail`; + // for (let key in payload) { + // url += `&${key}=${payload[key]}`; + // } }, }, }; |