summaryrefslogtreecommitdiff
path: root/src/lib/kdm_with_metadata.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-02-16 00:52:53 +0100
committerCarl Hetherington <cth@carlh.net>2025-02-18 00:22:11 +0100
commitb18a18ab2dff1339bb8def32dc96efaf4c5c5c09 (patch)
treeed0d0e206269248d7e04e3d508b9d639cbd89bb2 /src/lib/kdm_with_metadata.cc
parent3325b799c27d6a8c5878160631373bc4b8dcee75 (diff)
Add retry for email sending (#2963).
Diffstat (limited to 'src/lib/kdm_with_metadata.cc')
-rw-r--r--src/lib/kdm_with_metadata.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kdm_with_metadata.cc b/src/lib/kdm_with_metadata.cc
index d09f6930b..b6e027ef3 100644
--- a/src/lib/kdm_with_metadata.cc
+++ b/src/lib/kdm_with_metadata.cc
@@ -277,7 +277,7 @@ send_emails(
};
try {
- email.send(config->mail_server(), config->mail_port(), config->mail_protocol(), config->mail_user(), config->mail_password());
+ email.send_with_retry(config->mail_server(), config->mail_port(), config->mail_protocol(), 5, config->mail_user(), config->mail_password());
} catch (...) {
log_details(email);
throw;