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-17 00:30:55 +0100
commite9167bc88529bf5eb71bdefa4e69fdbac790a391 (patch)
treefee677aa0457c07a7ef4677defaebc23ece3da28 /src/lib/kdm_with_metadata.cc
parent410624e0548f65b795b192367f9272eb6f5d7bdb (diff)
Add retry for email sending (#2963).2963-retry-email
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;