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 + }); } }