2025-12-20 02:38:19.111 +01:00 [INF] <> Starting web application
2025-12-20 02:38:21.548 +01:00 [INF] <> Now listening on: https://localhost:7208
2025-12-20 02:38:21.556 +01:00 [INF] <> Now listening on: http://localhost:5068
2025-12-20 02:38:21.739 +01:00 [INF] <> Application started. Press Ctrl+C to shut down.
2025-12-20 02:38:21.740 +01:00 [INF] <> Hosting environment: Development
2025-12-20 02:38:21.740 +01:00 [INF] <> Content root path: D:\Duminat\Mio\Tms\WebApp\Tms.Api
2025-12-20 02:38:23.902 +01:00 [INF] <0HNHVD1QR7CLP:00000003> Request starting HTTP/2 GET https://localhost:7208/swagger - null null
2025-12-20 02:38:24.549 +01:00 [INF] <0HNHVD1QR7CLP:00000003> Request finished HTTP/2 GET https://localhost:7208/swagger - 301 0 null 660.4242ms
2025-12-20 02:38:24.806 +01:00 [INF] <0HNHVD1QR7CLP:00000005> Request starting HTTP/2 GET https://localhost:7208/_framework/aspnetcore-browser-refresh.js - null null
2025-12-20 02:38:25.055 +01:00 [INF] <0HNHVD1QR7CLP:00000007> Request starting HTTP/2 GET https://localhost:7208/_vs/browserLink - null null
2025-12-20 02:38:25.906 +01:00 [INF] <0HNHVD1QR7CLP:00000005> Request finished HTTP/2 GET https://localhost:7208/_framework/aspnetcore-browser-refresh.js - 200 13766 application/javascript; charset=utf-8 1099.1644ms
2025-12-20 02:38:26.234 +01:00 [INF] <0HNHVD1QR7CLP:00000007> Request finished HTTP/2 GET https://localhost:7208/_vs/browserLink - 200 null text/javascript; charset=UTF-8 1179.1238ms
2025-12-20 02:38:26.411 +01:00 [INF] <0HNHVD1QR7CLP:00000009> Request starting HTTP/2 GET https://localhost:7208/swagger/v1/swagger.json - null null
2025-12-20 02:38:26.673 +01:00 [INF] <0HNHVD1QR7CLP:00000009> Request finished HTTP/2 GET https://localhost:7208/swagger/v1/swagger.json - 200 null application/json;charset=utf-8 262.2404ms
2025-12-20 02:39:28.076 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Request starting HTTP/2 POST https://localhost:7208/Orders/send-test-email - application/json 56
2025-12-20 02:39:28.108 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Executing endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:39:28.161 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Route matched with {action = "SendTestEmail", controller = "Orders"}. Executing controller action with signature System.Threading.Tasks.Task`1[Tms.Api.Models.Common.Responses.ResponseModelBase] SendTestEmailAsync(Tms.Api.Models.Entities.Orders.TestFinishOrderEmailSendingRequestModel) on controller Tms.Api.Controllers.OrdersController (Tms.Api).
2025-12-20 02:39:29.642 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Executing action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) - Validation state: "Valid"
2025-12-20 02:40:22.609 +01:00 [ERR] <0HNHVD1QR7CLP:0000000B> idOrder: 23
System.Net.Mail.SmtpException: Failure sending mail.
 ---> System.IO.IOException: Unable to read data from the transport connection: The connection was closed.
   at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Tms.Api.Repository.InternalHelpers.EmailHelpers.CreateSmtpClient(MailSenderConfig mailParams) in D:\Duminat\Mio\Tms\WebApp\Tms.Api.Repository\InternalHelpers\EmailHelpers.cs:line 30
   at Tms.Api.Controllers.OrdersController.SendTestEmailAsync(TestFinishOrderEmailSendingRequestModel requestModel) in D:\Duminat\Mio\Tms\WebApp\Tms.Api\Controllers\OrdersController.cs:line 267
2025-12-20 02:40:22.702 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Executed action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 53054.168ms.
2025-12-20 02:40:22.717 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Executing ObjectResult, writing value of type 'Tms.Api.Models.Common.Responses.ResponseModelBase'.
2025-12-20 02:40:22.731 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Executed action Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) in 54565.4341ms
2025-12-20 02:40:22.733 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Executed endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:40:22.745 +01:00 [INF] <0HNHVD1QR7CLP:0000000B> Request finished HTTP/2 POST https://localhost:7208/Orders/send-test-email - 200 null application/json; charset=utf-8 54669.9027ms
2025-12-20 02:40:29.042 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Request starting HTTP/2 POST https://localhost:7208/Orders/send-test-email - application/json 56
2025-12-20 02:40:29.046 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Executing endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:40:29.047 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Route matched with {action = "SendTestEmail", controller = "Orders"}. Executing controller action with signature System.Threading.Tasks.Task`1[Tms.Api.Models.Common.Responses.ResponseModelBase] SendTestEmailAsync(Tms.Api.Models.Entities.Orders.TestFinishOrderEmailSendingRequestModel) on controller Tms.Api.Controllers.OrdersController (Tms.Api).
2025-12-20 02:40:29.083 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Executing action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) - Validation state: "Valid"
2025-12-20 02:41:26.741 +01:00 [ERR] <0HNHVD1QR7CLP:0000000D> idOrder: 23
System.Net.Mail.SmtpException: Failure sending mail.
 ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
 ---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Tms.Api.Repository.InternalHelpers.EmailHelpers.CreateSmtpClient(MailSenderConfig mailParams) in D:\Duminat\Mio\Tms\WebApp\Tms.Api.Repository\InternalHelpers\EmailHelpers.cs:line 30
   at Tms.Api.Controllers.OrdersController.SendTestEmailAsync(TestFinishOrderEmailSendingRequestModel requestModel) in D:\Duminat\Mio\Tms\WebApp\Tms.Api\Controllers\OrdersController.cs:line 267
2025-12-20 02:41:26.759 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Executed action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 57675.5495ms.
2025-12-20 02:41:26.760 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Executing ObjectResult, writing value of type 'Tms.Api.Models.Common.Responses.ResponseModelBase'.
2025-12-20 02:41:26.761 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Executed action Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) in 57713.7239ms
2025-12-20 02:41:26.761 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Executed endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:41:26.761 +01:00 [INF] <0HNHVD1QR7CLP:0000000D> Request finished HTTP/2 POST https://localhost:7208/Orders/send-test-email - 200 null application/json; charset=utf-8 57720.0146ms
2025-12-20 02:41:29.510 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Request starting HTTP/2 POST https://localhost:7208/Orders/send-test-email - application/json 56
2025-12-20 02:41:29.512 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Executing endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:41:29.512 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Route matched with {action = "SendTestEmail", controller = "Orders"}. Executing controller action with signature System.Threading.Tasks.Task`1[Tms.Api.Models.Common.Responses.ResponseModelBase] SendTestEmailAsync(Tms.Api.Models.Entities.Orders.TestFinishOrderEmailSendingRequestModel) on controller Tms.Api.Controllers.OrdersController (Tms.Api).
2025-12-20 02:41:29.542 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Executing action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) - Validation state: "Valid"
2025-12-20 02:42:03.717 +01:00 [ERR] <0HNHVD1QR7CLP:0000000F> idOrder: 23
System.Net.Mail.SmtpException: Failure sending mail.
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:25
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Net.Sockets.Socket.Connect(String host, Int32 port)
   at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
   at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Tms.Api.Repository.InternalHelpers.EmailHelpers.CreateSmtpClient(MailSenderConfig mailParams) in D:\Duminat\Mio\Tms\WebApp\Tms.Api.Repository\InternalHelpers\EmailHelpers.cs:line 30
   at Tms.Api.Controllers.OrdersController.SendTestEmailAsync(TestFinishOrderEmailSendingRequestModel requestModel) in D:\Duminat\Mio\Tms\WebApp\Tms.Api\Controllers\OrdersController.cs:line 267
2025-12-20 02:42:03.719 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Executed action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 34176.0342ms.
2025-12-20 02:42:03.720 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Executing ObjectResult, writing value of type 'Tms.Api.Models.Common.Responses.ResponseModelBase'.
2025-12-20 02:42:03.720 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Executed action Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) in 34208.2099ms
2025-12-20 02:42:03.721 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Executed endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:42:03.721 +01:00 [INF] <0HNHVD1QR7CLP:0000000F> Request finished HTTP/2 POST https://localhost:7208/Orders/send-test-email - 200 null application/json; charset=utf-8 34210.594ms
2025-12-20 02:42:07.838 +01:00 [INF] <0HNHVD1QR7CLP:00000011> Request starting HTTP/2 POST https://localhost:7208/Orders/send-test-email - application/json 56
2025-12-20 02:42:07.838 +01:00 [INF] <0HNHVD1QR7CLP:00000011> Executing endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:42:07.839 +01:00 [INF] <0HNHVD1QR7CLP:00000011> Route matched with {action = "SendTestEmail", controller = "Orders"}. Executing controller action with signature System.Threading.Tasks.Task`1[Tms.Api.Models.Common.Responses.ResponseModelBase] SendTestEmailAsync(Tms.Api.Models.Entities.Orders.TestFinishOrderEmailSendingRequestModel) on controller Tms.Api.Controllers.OrdersController (Tms.Api).
2025-12-20 02:42:07.884 +01:00 [INF] <0HNHVD1QR7CLP:00000011> Executing action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) - Validation state: "Valid"
2025-12-20 02:47:48.698 +01:00 [INF] <> Starting web application
2025-12-20 02:47:50.274 +01:00 [INF] <> Now listening on: https://localhost:7208
2025-12-20 02:47:50.283 +01:00 [INF] <> Now listening on: http://localhost:5068
2025-12-20 02:47:50.460 +01:00 [INF] <> Application started. Press Ctrl+C to shut down.
2025-12-20 02:47:50.460 +01:00 [INF] <> Hosting environment: Development
2025-12-20 02:47:50.461 +01:00 [INF] <> Content root path: D:\Duminat\Mio\Tms\WebApp\Tms.Api
2025-12-20 02:47:52.002 +01:00 [INF] <0HNHVD74E53FQ:00000003> Request starting HTTP/2 GET https://localhost:7208/swagger - null null
2025-12-20 02:47:52.475 +01:00 [INF] <0HNHVD74E53FQ:00000003> Request finished HTTP/2 GET https://localhost:7208/swagger - 301 0 null 483.7388ms
2025-12-20 02:47:52.552 +01:00 [INF] <0HNHVD74E53FQ:00000005> Request starting HTTP/2 GET https://localhost:7208/swagger/index.html - null null
2025-12-20 02:47:52.987 +01:00 [INF] <0HNHVD74E53FQ:00000007> Request starting HTTP/2 GET https://localhost:7208/_framework/aspnetcore-browser-refresh.js - null null
2025-12-20 02:47:52.995 +01:00 [INF] <0HNHVD74E53FQ:00000009> Request starting HTTP/2 GET https://localhost:7208/swagger/swagger-ui.css - null null
2025-12-20 02:47:52.996 +01:00 [INF] <0HNHVD74E53FQ:0000000B> Request starting HTTP/2 GET https://localhost:7208/swagger/index.css - null null
2025-12-20 02:47:53.002 +01:00 [INF] <0HNHVD74E53FQ:0000000D> Request starting HTTP/2 GET https://localhost:7208/_vs/browserLink - null null
2025-12-20 02:47:53.092 +01:00 [INF] <0HNHVD74E53FQ:00000007> Request finished HTTP/2 GET https://localhost:7208/_framework/aspnetcore-browser-refresh.js - 200 13766 application/javascript; charset=utf-8 104.9206ms
2025-12-20 02:47:53.120 +01:00 [INF] <0HNHVD74E53FQ:00000009> Request finished HTTP/2 GET https://localhost:7208/swagger/swagger-ui.css - 499 155175 text/css 124.762ms
2025-12-20 02:47:53.123 +01:00 [INF] <0HNHVD74E53FQ:0000000B> Request finished HTTP/2 GET https://localhost:7208/swagger/index.css - 499 202 text/css 126.9759ms
2025-12-20 02:47:53.173 +01:00 [INF] <0HNHVD74E53FQ:0000000D> Request finished HTTP/2 GET https://localhost:7208/_vs/browserLink - 200 null text/javascript; charset=UTF-8 171.323ms
2025-12-20 02:47:53.187 +01:00 [INF] <0HNHVD74E53FQ:0000000F> Request starting HTTP/2 GET https://localhost:7208/swagger/favicon-16x16.png - null null
2025-12-20 02:47:53.196 +01:00 [INF] <0HNHVD74E53FQ:0000000F> Request finished HTTP/2 GET https://localhost:7208/swagger/favicon-16x16.png - 200 665 image/png 10.0376ms
2025-12-20 02:47:53.280 +01:00 [INF] <0HNHVD74E53FQ:00000005> Request finished HTTP/2 GET https://localhost:7208/swagger/index.html - 200 null text/html;charset=utf-8 728.5863ms
2025-12-20 02:47:53.659 +01:00 [INF] <0HNHVD74E53FQ:00000011> Request starting HTTP/2 GET https://localhost:7208/swagger/v1/swagger.json - null null
2025-12-20 02:47:54.317 +01:00 [INF] <0HNHVD74E53FQ:00000011> Request finished HTTP/2 GET https://localhost:7208/swagger/v1/swagger.json - 200 null application/json;charset=utf-8 658.2113ms
2025-12-20 02:48:24.810 +01:00 [INF] <0HNHVD74E53FQ:00000013> Request starting HTTP/2 POST https://localhost:7208/Orders/send-test-email - application/json 56
2025-12-20 02:48:24.824 +01:00 [INF] <0HNHVD74E53FQ:00000013> Executing endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:48:24.887 +01:00 [INF] <0HNHVD74E53FQ:00000013> Route matched with {action = "SendTestEmail", controller = "Orders"}. Executing controller action with signature System.Threading.Tasks.Task`1[Tms.Api.Models.Common.Responses.ResponseModelBase] SendTestEmailAsync(Tms.Api.Models.Entities.Orders.TestFinishOrderEmailSendingRequestModel) on controller Tms.Api.Controllers.OrdersController (Tms.Api).
2025-12-20 02:48:25.258 +01:00 [INF] <0HNHVD74E53FQ:00000013> Executing action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) - Validation state: "Valid"
2025-12-20 02:48:42.553 +01:00 [ERR] <0HNHVD74E53FQ:00000013> idOrder: 23
System.Net.Mail.SmtpException: Failure sending mail.
 ---> System.IO.IOException: Unable to read data from the transport connection: The connection was closed.
   at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Tms.Api.Repository.InternalHelpers.EmailHelpers.CreateSmtpClient(MailSenderConfig mailParams) in D:\Duminat\Mio\Tms\WebApp\Tms.Api.Repository\InternalHelpers\EmailHelpers.cs:line 30
   at Tms.Api.Controllers.OrdersController.SendTestEmailAsync(TestFinishOrderEmailSendingRequestModel requestModel) in D:\Duminat\Mio\Tms\WebApp\Tms.Api\Controllers\OrdersController.cs:line 267
2025-12-20 02:48:42.581 +01:00 [INF] <0HNHVD74E53FQ:00000013> Executed action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 17314.8496ms.
2025-12-20 02:48:42.597 +01:00 [INF] <0HNHVD74E53FQ:00000013> Executing ObjectResult, writing value of type 'Tms.Api.Models.Common.Responses.ResponseModelBase'.
2025-12-20 02:48:42.610 +01:00 [INF] <0HNHVD74E53FQ:00000013> Executed action Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) in 17718.0082ms
2025-12-20 02:48:42.612 +01:00 [INF] <0HNHVD74E53FQ:00000013> Executed endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:48:42.626 +01:00 [INF] <0HNHVD74E53FQ:00000013> Request finished HTTP/2 POST https://localhost:7208/Orders/send-test-email - 200 null application/json; charset=utf-8 17816.3747ms
2025-12-20 02:48:49.292 +01:00 [INF] <0HNHVD74E53FQ:00000015> Request starting HTTP/2 POST https://localhost:7208/Orders/send-test-email - application/json 56
2025-12-20 02:48:49.298 +01:00 [INF] <0HNHVD74E53FQ:00000015> Executing endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:48:49.299 +01:00 [INF] <0HNHVD74E53FQ:00000015> Route matched with {action = "SendTestEmail", controller = "Orders"}. Executing controller action with signature System.Threading.Tasks.Task`1[Tms.Api.Models.Common.Responses.ResponseModelBase] SendTestEmailAsync(Tms.Api.Models.Entities.Orders.TestFinishOrderEmailSendingRequestModel) on controller Tms.Api.Controllers.OrdersController (Tms.Api).
2025-12-20 02:48:49.340 +01:00 [INF] <0HNHVD74E53FQ:00000015> Executing action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) - Validation state: "Valid"
2025-12-20 02:50:00.794 +01:00 [ERR] <0HNHVD74E53FQ:00000015> idOrder: 23
System.Net.Mail.SmtpException: Failure sending mail.
 ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host..
 ---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
   at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
   at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Tms.Api.Repository.InternalHelpers.EmailHelpers.CreateSmtpClient(MailSenderConfig mailParams) in D:\Duminat\Mio\Tms\WebApp\Tms.Api.Repository\InternalHelpers\EmailHelpers.cs:line 30
   at Tms.Api.Controllers.OrdersController.SendTestEmailAsync(TestFinishOrderEmailSendingRequestModel requestModel) in D:\Duminat\Mio\Tms\WebApp\Tms.Api\Controllers\OrdersController.cs:line 267
2025-12-20 02:50:00.796 +01:00 [INF] <0HNHVD74E53FQ:00000015> Executed action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 71456.2104ms.
2025-12-20 02:50:00.797 +01:00 [INF] <0HNHVD74E53FQ:00000015> Executing ObjectResult, writing value of type 'Tms.Api.Models.Common.Responses.ResponseModelBase'.
2025-12-20 02:50:00.804 +01:00 [INF] <0HNHVD74E53FQ:00000015> Executed action Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) in 71504.5341ms
2025-12-20 02:50:00.805 +01:00 [INF] <0HNHVD74E53FQ:00000015> Executed endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:50:00.806 +01:00 [INF] <0HNHVD74E53FQ:00000015> Request finished HTTP/2 POST https://localhost:7208/Orders/send-test-email - 499 null application/json; charset=utf-8 71513.9589ms
2025-12-20 02:50:03.897 +01:00 [INF] <0HNHVD74E53FR:00000003> Request starting HTTP/2 POST https://localhost:7208/Orders/send-test-email - application/json 56
2025-12-20 02:50:03.901 +01:00 [INF] <0HNHVD74E53FR:00000003> Executing endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:50:03.902 +01:00 [INF] <0HNHVD74E53FR:00000003> Route matched with {action = "SendTestEmail", controller = "Orders"}. Executing controller action with signature System.Threading.Tasks.Task`1[Tms.Api.Models.Common.Responses.ResponseModelBase] SendTestEmailAsync(Tms.Api.Models.Entities.Orders.TestFinishOrderEmailSendingRequestModel) on controller Tms.Api.Controllers.OrdersController (Tms.Api).
2025-12-20 02:50:03.930 +01:00 [INF] <0HNHVD74E53FR:00000003> Executing action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) - Validation state: "Valid"
2025-12-20 02:50:37.372 +01:00 [ERR] <0HNHVD74E53FR:00000003> idOrder: 23
System.Net.Mail.SmtpException: Failure sending mail.
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:25
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.Net.Sockets.Socket.Connect(String host, Int32 port)
   at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
   at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Tms.Api.Repository.InternalHelpers.EmailHelpers.CreateSmtpClient(MailSenderConfig mailParams) in D:\Duminat\Mio\Tms\WebApp\Tms.Api.Repository\InternalHelpers\EmailHelpers.cs:line 30
   at Tms.Api.Controllers.OrdersController.SendTestEmailAsync(TestFinishOrderEmailSendingRequestModel requestModel) in D:\Duminat\Mio\Tms\WebApp\Tms.Api\Controllers\OrdersController.cs:line 267
2025-12-20 02:50:37.373 +01:00 [INF] <0HNHVD74E53FR:00000003> Executed action method Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 33442.305ms.
2025-12-20 02:50:37.373 +01:00 [INF] <0HNHVD74E53FR:00000003> Executing ObjectResult, writing value of type 'Tms.Api.Models.Common.Responses.ResponseModelBase'.
2025-12-20 02:50:37.374 +01:00 [INF] <0HNHVD74E53FR:00000003> Executed action Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api) in 33471.7798ms
2025-12-20 02:50:37.374 +01:00 [INF] <0HNHVD74E53FR:00000003> Executed endpoint 'Tms.Api.Controllers.OrdersController.SendTestEmailAsync (Tms.Api)'
2025-12-20 02:50:37.374 +01:00 [INF] <0HNHVD74E53FR:00000003> Request finished HTTP/2 POST https://localhost:7208/Orders/send-test-email - 200 null application/json; charset=utf-8 33487.1575ms
