From 909f358356bc11a7710f8120ce4e9cdd7265c4f0 Mon Sep 17 00:00:00 2001 From: Chase Tucker Date: Wed, 2 Apr 2025 09:14:19 -0700 Subject: [PATCH] fix email subject bug --- MesaFabApproval.API/Clients/SmtpClientWrapper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MesaFabApproval.API/Clients/SmtpClientWrapper.cs b/MesaFabApproval.API/Clients/SmtpClientWrapper.cs index 82bf7a3..4421295 100644 --- a/MesaFabApproval.API/Clients/SmtpClientWrapper.cs +++ b/MesaFabApproval.API/Clients/SmtpClientWrapper.cs @@ -15,6 +15,8 @@ public class SmtpClientWrapper : ISmtpClientWrapper { } public void Send(MailMessage message) { + message.Subject = message.Subject.Replace('\r', ' ').Replace('\n', ' '); + _client.Send(message); } } \ No newline at end of file