diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-11 18:12:51 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-11 18:12:51 +0100 |
| commit | c011cfe0cb4b2b29c2e1d48b5bfd6db1d7fdc6d8 (patch) | |
| tree | 9c3b1fed55c2da1015f37df2af29e9f7b864252f /src/exporter.cpp | |
| parent | 1ab0d5fb96624e0fb92b961fc02b3e6344126033 (diff) | |
localizations
Diffstat (limited to 'src/exporter.cpp')
| -rw-r--r-- | src/exporter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exporter.cpp b/src/exporter.cpp index 21ff778..5f1a6c3 100644 --- a/src/exporter.cpp +++ b/src/exporter.cpp @@ -45,6 +45,10 @@ static int _send_email_t(void* arg) { exporter::email_provider_impl impl = exporter::get_email_provider_implementation(administration::get_email_service().provider); request->error = impl.send_email(request->sender, request->recipient, request->subject, request->text); + #if SIMULATE_EMAIL_FAILURE + request->error = E_ERR_FAILED_REQUEST; + #endif + request->status = exporter::export_status::EXPORT_DONE; request->done_at = time(NULL); |
