Merge pull request #2329 from bluewave-labs/fix/test-email
fix: test email
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -65,7 +65,9 @@ const MonitorDetailsControlHeader = ({
|
|||||||
color="secondary"
|
color="secondary"
|
||||||
loading={isSending}
|
loading={isSending}
|
||||||
startIcon={<EmailIcon />}
|
startIcon={<EmailIcon />}
|
||||||
onClick={sendTestEmail}
|
onClick={() => {
|
||||||
|
sendTestEmail();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{t("sendTestEmail")}
|
{t("sendTestEmail")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -92,11 +92,10 @@ class EmailService {
|
|||||||
buildAndSendEmail = async (template, context, to, subject, transportConfig) => {
|
buildAndSendEmail = async (template, context, to, subject, transportConfig) => {
|
||||||
// TODO - Consider an update transporter method so this only needs to be recreated when smtp settings change
|
// TODO - Consider an update transporter method so this only needs to be recreated when smtp settings change
|
||||||
let config;
|
let config;
|
||||||
|
|
||||||
if (typeof transportConfig !== "undefined") {
|
if (typeof transportConfig !== "undefined") {
|
||||||
config = transportConfig;
|
config = transportConfig;
|
||||||
} else {
|
} else {
|
||||||
config = this.settingsService.getDBSettings();
|
config = await this.settingsService.getDBSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
Reference in new issue
Block a user