commit 7f936d2
shtrophic
·
2025-04-24 10:18:23 +0000 UTC
parent ac8b03f
default to `smtp://localhost`
1 files changed,
+1,
-1
+1,
-1
1@@ -2571,7 +2571,7 @@ int send_email(const xs_dict *mailinfo)
2 {
3 const xs_dict *smtp_cfg = xs_dict_get(srv_config, "email_notifications");
4 const char
5- *url = xs_dict_get(smtp_cfg, "url"),
6+ *url = xs_dict_get_def(smtp_cfg, "url", "smtp://localhost"),
7 *user = xs_dict_get(smtp_cfg, "username"),
8 *pass = xs_dict_get(smtp_cfg, "password"),
9 *from = xs_dict_get(mailinfo, "from"),