2025-07-02 09:27:00.1286 ERROR Something went wrong: System.Net.Mail.SmtpException: Failure sending mail.
 ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (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 COPOSWeb.Repository.Service.EmailService.EmailService.SendEmail(EmailParams emailParams) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\EmailService\EmailService.cs:line 106
   at COPOSWeb.Repository.Service.BlastEmailService.BlastEmailService._SendBlastEmail(List`1 recipients, BlastEmailDTO blastEmail, User user) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\BlastEmailService\BlastEmailService.cs:line 97
   at COPOSWeb.Repository.Service.BlastEmailService.BlastEmailService.SendBlastEmail(BlastEmailDTO blastEmail, Guid userLoginGuid) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\BlastEmailService\BlastEmailService.cs:line 46
   at COPOSWeb.Controllers.BlastEmailController.SendBlastEmail(BlastEmailDTO blastEmail, Guid userLoginGuid) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Controllers\BlastEmailController.cs:line 47
   at lambda_method5424(Closure, Object, Object[])
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
2025-07-02 09:28:00.3788 ERROR Something went wrong: System.NullReferenceException: Object reference not set to an instance of an object.
   at COPOSWeb.Repository.Service.EmailService.EmailService.SaveMailMessageToEml(MailMessage message, String folderPath) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\EmailService\EmailService.cs:line 134
   at COPOSWeb.Repository.Service.EmailService.EmailService.SendEmail(EmailParams emailParams) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\EmailService\EmailService.cs:line 98
   at COPOSWeb.Repository.Service.BlastEmailService.BlastEmailService._SendBlastEmail(List`1 recipients, BlastEmailDTO blastEmail, User user) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\BlastEmailService\BlastEmailService.cs:line 97
   at COPOSWeb.Repository.Service.BlastEmailService.BlastEmailService.SendBlastEmail(BlastEmailDTO blastEmail, Guid userLoginGuid) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Repository\Service\BlastEmailService\BlastEmailService.cs:line 46
   at COPOSWeb.Controllers.BlastEmailController.SendBlastEmail(BlastEmailDTO blastEmail, Guid userLoginGuid) in C:\Users\c-jacosmit\source\repos\COPOS2\COPOSWeb\Controllers\BlastEmailController.cs:line 47
   at lambda_method6133(Closure, Object, Object[])
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
