From 7793d3cbb965ffefc161acd4e6864e51858a0874 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 9 Jun 2026 19:11:44 +0200 Subject: [PATCH] Update EmailOut to use EnvelopeReceiver properties Updated the `EmailAddress` and `ReferenceString` properties of the `EmailOut` object in `SendSignedMailBehavior` to use `request.EnvelopeReceiver.Receiver!.EmailAddress` instead of `request.EmailAddress`. This ensures the values are derived from the `EnvelopeReceiver.Receiver` object for improved accuracy and consistency. --- .../Signatures/Behaviors/SendSignedMailBehavior.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EnvelopeGenerator.Application/Signatures/Behaviors/SendSignedMailBehavior.cs b/EnvelopeGenerator.Application/Signatures/Behaviors/SendSignedMailBehavior.cs index fc7346bc..7b951124 100644 --- a/EnvelopeGenerator.Application/Signatures/Behaviors/SendSignedMailBehavior.cs +++ b/EnvelopeGenerator.Application/Signatures/Behaviors/SendSignedMailBehavior.cs @@ -64,7 +64,7 @@ public class SendSignedMailBehavior : IPipelineBehavior var emailOut = new EmailOut { - EmailAddress = request.EmailAddress, + EmailAddress = request.EnvelopeReceiver.Receiver!.EmailAddress, EmailBody = temp.Body, EmailSubj = temp.Subject, AddedWhen = DateTime.Now, @@ -73,7 +73,7 @@ public class SendSignedMailBehavior : IPipelineBehavior ReminderTypeId = _dispatcherParams.ReminderTypeId, EmailAttmt1 = _dispatcherParams.EmailAttmt1, WfId = (int)EnvelopeStatus.MessageConfirmationSent, - ReferenceString = request.EmailAddress, + ReferenceString = request.EnvelopeReceiver.Receiver!.EmailAddress, ReferenceId = request.EnvelopeReceiver.ReceiverId };