### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 881


Osmo-x WhatsApp Message has been Sent


Sending Task Assignment Email for TaskId: 12618, UserId: 881


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Task Assigned - AT/SAIL/OFF/III/26/00002

This is a test mode notification. Notification was not delivered to recipient.


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


### Started process for Execution of Event : Update_USER ###


### Started Event for Update User Email ###


Calling Send Email Function for Update User Email


Your OQSHA Access Has Been Updated


### Start Event Execution ###


### Started process for Execution of Event : Update_APP_USER ###


### Started Event for Update App User Email ###


Osmo-x WhatsApp Message has been Sent


Sending Task Assignment Email for TaskId: 12620, UserId: 881


New Task Assigned - AT/SAIL/OFF/III/26/00004


Sending WhatsApp notification for task assignment to user ID: 9308


Sending Task Assignment Email for TaskId: 12622, UserId: 9308


Initializing Email Service Client


Generating Email Request


New Task Assigned - AT/SAIL/OFF/III/26/00006


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":12624},{"Key":"OrgId","Value":253}]}


### Started process for Execution of Event : TASK_CREATE_EHS_NOTIFICATION ###


### Started processing for Task Creation Notification to site EHS Event ###


## Sending notification to Site EHS user ##


## Notification to be send for these users: []


### Ended processing Task Creation Notification to site EHS Event ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 5790


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000005418","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_task_assigned_to_notification_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Adrianna Pollak"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/FBYDW/ROO/IA-/26/00002"},{"type":"text","text":"N/A"},{"type":"text","text":"IMS Audit - External"},{"type":"text","text":"https://oqsha.com/#/tasks/edit/12626?dlType=viewTask&orgID=248"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Sending Task Assignment Email for TaskId: 12626, UserId: 5790


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Action Tracker Assigned - AT/FBYDW/ROO/IA-/26/00002


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: osm04599@osmosys.co


New Work Permit Assigned


Sending WorkPermit creation WhatsApp message to: 912000002271


### Start Event Execution ###


### Started process for Execution of Event : DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


Sending WorkPermit creation email to: osm03998@osmosys.co


Sending WorkPermit creation WhatsApp message to: 915555557738


Osmo-x WhatsApp Message has been Sent


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


Sending WorkPermit creation email to: osm07940@osmosys.co


Sending WorkPermit creation WhatsApp message to: 912000007478


New Work Permit Assigned


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Sincere Cope"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Cadence Design Systems Inc."},{"Key":"UserDivisions","Value":"Observation, Near Miss, Accident, Unsafe Act, Unsafe condition, tipping, Fly tipping"},{"Key":"UserIncidentSites","Value":"Archer Lodge, Butterfield Park, Harwood, Leon, Los Llanos, Thaxton, Yakima"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"osm06269@osmosys.co"}]}


### Started process for Execution of Event : Update_USER ###


### Started Event for Update User Email ###


Calling Send Email Function for Update User Email


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Your OQSHA Access Has Been Updated


### Start Event Execution ###


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Sincere Cope"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Cadence Design Systems Inc."},{"Key":"UserUid","Value":"7993748762"},{"Key":"UserDivisions","Value":"Observation, Near Miss, Accident, Unsafe Act, Unsafe condition, tipping, Fly tipping"},{"Key":"UserIncidentSites","Value":"Archer Lodge, Butterfield Park, Harwood, Leon, Los Llanos, Thaxton, Yakima"},{"Key":"Email","Value":"osm06269@osmosys.co"},{"Key":"MobileNumber","Value":"+912000007341"}]}


### Started process for Execution of Event : Update_APP_USER ###


### Started Event for Update App User Email ###


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: osm02998@osmosys.co


New Work Permit Assigned


Sending WorkPermit creation WhatsApp message to: 612222222224


Osmo-x WhatsApp Message has been Sent


### Started process for Execution of Event : DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


### Start Event Execution ###


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: osm02998@osmosys.co


Initializing Email Service Client


Generating Email Request


Derek Cope has Approved your Work Permit


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 10552


### End Event Execution ###


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION","EventArgs":[{"Key":"WorkPermitId","Value":"2072"},{"Key":"WorkPermitUid","Value":"WP/HNG/NAS/EEE/26/00001"},{"Key":"SiteName","Value":"Custer Park"},{"Key":"OrganisationName","Value":"Hering Neureuther GmbH"},{"Key":"ApprovedOn","Value":"06-May-2026 03:50:39 PM"},{"Key":"OrgId","Value":259}]}


### Started process for Execution of Event : WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION ###


Executing email notifications to Contractor Supervisor about the approval of Work Permit by all Approver


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"2073"},{"Key":"ApproverIds","Value":"[267]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Hebert Eaton"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/EWW/26/00001"},{"Key":"OrgId","Value":248},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"}]}


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: TTK_Admin@oqsha.com


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WorkPermit creation WhatsApp message to: 912000001875


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_creation_alert_v3","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"WP/FBYDW/ROO/EWW/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/2073?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


Message : {"EventName":"DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION","EventArgs":[{"Key":"WorkPermitId","Value":"2073"},{"Key":"UserIds","Value":"[]"},{"Key":"SiteName","Value":"Colver"},{"Key":"CreatedBy","Value":"Hebert Eaton"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/EWW/26/00001"},{"Key":"OrgId","Value":248},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"}]}


### Started process for Execution of Event : DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION","EventArgs":[{"Key":"CreatorId","Value":"267"},{"Key":"ApproverName","Value":"Hebert Eaton"},{"Key":"WorkPermitId","Value":"2073"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/EWW/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"StatusPastTenseName","Value":"Approved"},{"Key":"ApprovedOn","Value":"06-May-2026 03:56:11 PM"},{"Key":"OrgId","Value":248}]}


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: TTK_Admin@oqsha.com


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Hebert Eaton has Approved your Work Permit


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 267


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_approved_inform_to_v2","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"Approved"},{"type":"text","text":"WP/FBYDW/ROO/EWW/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"06-May-2026 03:56:11 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/2073?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION","EventArgs":[{"Key":"WorkPermitId","Value":"2073"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/EWW/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"ApprovedOn","Value":"06-May-2026 03:56:12 PM"},{"Key":"OrgId","Value":248}]}


### Started process for Execution of Event : WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION ###


Executing email notifications to Contractor Supervisor about the approval of Work Permit by all Approver


Message : {"EventName":"WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION","EventArgs":[{"Key":"UserIds","Value":"[267]"},{"Key":"InitiatorName","Value":"Hebert Eaton"},{"Key":"ExtensionHours","Value":2},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/EWW/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"ExtensionTakenOn","Value":"06-May-2026 03:58:01 PM"},{"Key":"WorkPermitId","Value":"2073"},{"Key":"OrgId","Value":248}]}


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION ###


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Extension Information


Initializing Email Service Client


Generating Email Request


Work Permit has been Extended


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Approvers about the Extension Information


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_workpermit_approver_notification","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"2"},{"type":"text","text":"WP/FBYDW/ROO/EWW/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"06-May-2026 03:58:01 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/2073?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_EXTENSION_HANDOVER_NOTIFICATION","EventArgs":[{"Key":"UserId","Value":267},{"Key":"WorkPermitId","Value":"2073"},{"Key":"WorkPermitUid","Value":"WP/FBYDW/ROO/EWW/26/00001"},{"Key":"SiteName","Value":"Colver"},{"Key":"OrganisationName","Value":"Falcon's Beyond Global Inc. Warrants"},{"Key":"ExtensionTakenOn","Value":"06-May-2026 03:58:01 PM"},{"Key":"OrgId","Value":248}]}


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_HANDOVER_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Extension Handover


Sending WorkPermit Extension Handover email: TTK_Admin@oqsha.com


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Work Permit Extension Assigned to You – WP/FBYDW/ROO/EWW/26/00001


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Extension Creator about the approval by an Approver


Sending WhatsApp for WorkPermit Extension to user: 267


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_work_permit_handover_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Hebert Eaton"},{"type":"text","text":"WP/FBYDW/ROO/EWW/26/00001"},{"type":"text","text":"Colver"},{"type":"text","text":"Falcon's Beyond Global Inc. Warrants"},{"type":"text","text":"06-May-2026 03:58:01 PM"},{"type":"text","text":"https://oqsha.com/#/permit-to-work/view-work-permit/248/2073?dlType=viewWorkPermitV2"},{"type":"text","text":"EHS Department - TTK Prestige Limited"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: osm07940@osmosys.co


New Work Permit Assigned


Sending WorkPermit creation WhatsApp message to: 912000007478


### Started process for Execution of Event : DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: TTK_Admin@oqsha.com


Initializing Email Service Client


Generating Email Request


Aimée Burleson has Issued your Work Permit


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 267


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : WORK_PERMIT_APPROVAL_INVITATION_NOTIFICATION ###


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Pending approval


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


A Work Permit is awaiting your Review


Executing whatsapp notifications to WorkPermit Approvers about the Pending approval


Sending WhatsApp for WorkPermit to user: 678


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Initializing Email Service Client


Generating Email Request


Giselle Angle has Reviewed your Work Permit


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION","EventArgs":[{"Key":"WorkPermitId","Value":"2074"},{"Key":"WorkPermitUid","Value":"WP/KURA/FD2/EEE/26/00001"},{"Key":"SiteName","Value":"Carson Valley"},{"Key":"OrganisationName","Value":"Kura Oncology Inc."},{"Key":"ApprovedOn","Value":"06-May-2026 04:05:46 PM"},{"Key":"OrgId","Value":258}]}


### Started process for Execution of Event : WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION ###


Executing email notifications to Contractor Supervisor about the approval of Work Permit by all Approver


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: osm02998@osmosys.co


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WorkPermit creation WhatsApp message to: 612222222224


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


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


Error occurred while sending email using Osmo-x.


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_20260506_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


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


Sending WorkPermit creation email to: TITAGARH_BHA_SH@oqsha.com


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WorkPermit creation WhatsApp message to: 912222222223


Osmo-x WhatsApp Message has been Sent


Sending WorkPermit creation email to: osm01390@osmosys.co


Sending WorkPermit creation WhatsApp message to: 912222222220


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: osm02998@osmosys.co


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 10552


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_REASSIGN ###


# Calling SendNotificationToReAssignedApproversForWorkPermit function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: osm02998@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WorkPermit creation WhatsApp message to: 612222222224


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION ###


Executing email notifications to Contractor Supervisor about the approval of Work Permit by all Approver


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION ###


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Extension Information


Work Permit has been Extended


Executing whatsapp notifications to WorkPermit Approvers about the Extension Information


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_HANDOVER_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Extension Handover


Sending WorkPermit Extension Handover email: osm02998@osmosys.co


Initializing Email Service Client


Generating Email Request


Work Permit Extension Assigned to You – WP/HNG/NAS/GWW/26/00002


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Extension Creator about the approval by an Approver


Sending WhatsApp for WorkPermit Extension to user: 10552


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: osm02998@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 10552


Initializing Email Service Client


Generating Email Request


### Started process for Execution of Event : WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION ###


Executing email notifications to Contractor Supervisor about the approval of Work Permit by all Approver


### Started process for Execution of Event : WORK_PERMIT_STATUS_CHANGE_TO_APPROVERS ###


# Calling SendNotificationToApproversForWorkPermitStatusChange function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit status change email to: osm02998@osmosys.co


Work Permit Status Updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WorkPermit status change WhatsApp message to: 612222222224


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Sending WorkPermit creation email to: osm02998@osmosys.co


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


Sending WorkPermit creation WhatsApp message to: 612222222224


### Started process for Execution of Event : DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: osm02998@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 10552


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Initializing Email Service Client


Generating Email Request


### Started process for Execution of Event : WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION ###


Executing email notifications to Contractor Supervisor about the approval of Work Permit by all Approver


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_INFORMATION_NOTIFICATION ###


# Calling SendWorkPermitApprovalInvitationNotification function for email/WhatsApp #


Executing email notifications to WorkPermit Approvers about the Extension Information


Work Permit has been Extended


Executing whatsapp notifications to WorkPermit Approvers about the Extension Information


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_HANDOVER_NOTIFICATION ###


Executing email notifications to WorkPermit Extension Handover


Sending WorkPermit Extension Handover email: osm02998@osmosys.co


Work Permit Extension Assigned to You – WP/HNG/NAS/GWW/26/00003


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Extension Creator about the approval by an Approver


Sending WhatsApp for WorkPermit Extension to user: 10552


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendNotificationForWorkPermitCreation function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit creation email to: osm02998@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Work Permit Assigned


Sending WorkPermit creation WhatsApp message to: 612222222224


### Started process for Execution of Event : DEPARTMENT_INCHARGE_NOTIFICATION_FOR_WORK_PERMIT_CREATION ###


# Calling SendDepartmentInchargeNotificationForWorkPermitCreation function for email/WhatsApp #


### Started process for Execution of Event : WORK_PERMIT_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


# Calling SendWorkPermitApprovedInformToCreatorNotification function for email #


Executing email notifications to WorkPermit Creator about the approval by an Approver


Sending WorkPermit Approver Clarification email to WorkPermit Creator: osm02998@osmosys.co


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp notifications to WorkPermit Creator about the approval by an Approver


Sending WhatsApp for WorkPermit to user: 10552


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


Initializing Email Service Client


Generating Email Request


### Started process for Execution of Event : WORK_PERMIT_APPROVED_CONTRACTOR_SUPERVISOR_NOTIFICATION ###


Executing email notifications to Contractor Supervisor about the approval of Work Permit by all Approver


### Started process for Execution of Event : WORK_PERMIT_EXTENSION_APPROVED_INFORM_TO_CREATOR_NOTIFICATION ###


Executing email notifications to WorkPermit Extension Creator about the approval by an Approver


Sending WorkPermit Extension Approver Clarification email to WorkPermit Creator: osm02998@osmosys.co


Derek Cope has Approved your Work Permit Extension


Executing whatsapp notifications to WorkPermit Extension Creator about the approval by an Approver


Sending WhatsApp for WorkPermit Extension to user: 10552


### Started process for Execution of Event : WORK_PERMIT_STATUS_CHANGE_TO_APPROVERS ###


# Calling SendNotificationToApproversForWorkPermitStatusChange function for email/WhatsApp #


Executing email and WhatsApp notifications to WorkPermit approvers


Sending WorkPermit status change email to: osm02998@osmosys.co


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Work Permit Status Updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WorkPermit status change WhatsApp message to: 612222222224


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Start Event Execution ###


### Started process for Execution of Event : Update_USER ###


### Started Event for Update User Email ###


Calling Send Email Function for Update User Email


Initializing Email Service Client


Generating Email Request


Your OQSHA Access Has Been Updated


### Started process for Execution of Event : Update_APP_USER ###


### Started Event for Update App User Email ###