feat(SendEmailBehavior): add SendEmailBehavior for sending final emails after PDF burn

- Implements IPipelineBehavior<BurnPdfCommand, byte[]> to send emails to creator and receivers.
- Logs debug information when sending emails and warnings if email sending is skipped.
- Uses Envelope's FinalEmailType to determine whether to send emails.
This commit is contained in:
2025-11-12 15:12:04 +01:00
parent d1513dab5e
commit 40cc467b47
2 changed files with 62 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ public static class DependencyInjection
cfg.AddBehavior<CreateHistoryBehavior>();
cfg.AddBehavior<SavePdfBehavior>();
#if WINDOWS
cfg.AddBehavior<SendEmailBehavior>();
cfg.AddBehavior<WritePdfBehavior>();
cfg.AddBehavior<PdfMergeBehavior>();
cfg.AddBehavior<AddReportBehavior>();