From 4192909e8c7dc0a61c9ab1875a249c8ef7b04109 Mon Sep 17 00:00:00 2001 From: DyCTaTOR <125912249+DyCTaTOR@users.noreply.github.com> Date: Tue, 7 May 2024 20:32:50 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D1=83=20=D0=B2=D1=80=D0=BE=D0=B4=D0=B5?= =?UTF-8?q?=20=D1=83=D1=81=D1=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs | 1 + .../PlumbingRepairBusinessLogic/MailWorker/MailKitWorker.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs b/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs index 8725c7b..8c1cd0e 100644 --- a/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs +++ b/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs @@ -75,6 +75,7 @@ namespace PlumbingRepairBusinessLogic.BusinessLogics _logger.LogWarning("Insert operation failed"); return false; } + Task.Run(() => _mailWorker.MailSendAsync(new MailSendInfoBindingModel { MailAddress = result.ClientEmail, diff --git a/PlumbingRepair/PlumbingRepairBusinessLogic/MailWorker/MailKitWorker.cs b/PlumbingRepair/PlumbingRepairBusinessLogic/MailWorker/MailKitWorker.cs index 0b6609c..90d1062 100644 --- a/PlumbingRepair/PlumbingRepairBusinessLogic/MailWorker/MailKitWorker.cs +++ b/PlumbingRepair/PlumbingRepairBusinessLogic/MailWorker/MailKitWorker.cs @@ -68,6 +68,7 @@ messageInfoLogic) : base(logger, messageInfoLogic) { } SenderName = mail.Address, Subject = message.Subject, Body = message.TextBody + }); } }