level: Info

severity: INFO

message: ### Start Event Execution ###


message: ### Started process for Execution of Event : NOTIFICATION_FOR_WEEKLY_PRESENTATION_REPORT ###


message: *--- Sending Email Serice Initiated ---*


message: Reading and binding data to Email Template


message: Initializing Email Service Client


message: Generating Email Request


level: Error

severity: ERROR

message: Error occurred while sending email using Osmo-x.


MethodName: SendEmail

EntryPoint: NotificationSender

stackTrace:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\App-Data\iis\api.incidentreporter365.com\Apps\NotificationSender\xxxx\incident-reporter-api\IncidentReporter\IncidentReporter.API\attachments\pptx\safety_report_20260503_120056.pptx'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost)
   at IncidentReporter.NotificationSender.EmailHelper.SendEmail(String template, String subject, Object args, String toAddress, String ccAddress, List`1 reportAttachments, List`1 additionalAttachmentsFilePath, String rootEmailTemplatePath, OrganisationFromConfig organisationFromAddress) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\Helpers\EmailHelper.cs:line 128


level: Warn

severity: WARN

message: Failed to send Weekly Presentation Report Email | File=xxxx\incident-reporter-api\IncidentReporter\IncidentReporter.API\attachments\pptx\safety_report_20260503_120056.pptx


message: ### End Event Execution ###