diff options
| author | 2025-04-24 12:18:23 +0200 | |
|---|---|---|
| committer | 2025-04-24 12:18:23 +0200 | |
| commit | 7f936d2d1a88840209895c6091801e8c4cfdaaa1 (patch) | |
| tree | 3360d9df91713da2613159699b348d443e987db3 | |
| parent | Merge tag '2.75' into curl-smtp (diff) | |
| download | snac2-7f936d2d1a88840209895c6091801e8c4cfdaaa1.tar.gz snac2-7f936d2d1a88840209895c6091801e8c4cfdaaa1.tar.xz snac2-7f936d2d1a88840209895c6091801e8c4cfdaaa1.zip | |
default to `smtp://localhost`
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 061d1f8..df68151 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -2571,7 +2571,7 @@ int send_email(const xs_dict *mailinfo) | |||
| 2571 | { | 2571 | { |
| 2572 | const xs_dict *smtp_cfg = xs_dict_get(srv_config, "email_notifications"); | 2572 | const xs_dict *smtp_cfg = xs_dict_get(srv_config, "email_notifications"); |
| 2573 | const char | 2573 | const char |
| 2574 | *url = xs_dict_get(smtp_cfg, "url"), | 2574 | *url = xs_dict_get_def(smtp_cfg, "url", "smtp://localhost"), |
| 2575 | *user = xs_dict_get(smtp_cfg, "username"), | 2575 | *user = xs_dict_get(smtp_cfg, "username"), |
| 2576 | *pass = xs_dict_get(smtp_cfg, "password"), | 2576 | *pass = xs_dict_get(smtp_cfg, "password"), |
| 2577 | *from = xs_dict_get(mailinfo, "from"), | 2577 | *from = xs_dict_get(mailinfo, "from"), |