From 86bc2ce3f114ca0f21cbf5a9ea0c3983511b3cd4 Mon Sep 17 00:00:00 2001 From: berlin-tzen Date: Thu, 30 Mar 2023 18:27:47 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20EmailBody=20=E8=BD=89HTML=E7=B7=A8?= =?UTF-8?q?=E7=A2=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs index 3cb21eb..f454992 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/OnsiteService.cs @@ -14,6 +14,7 @@ using System.Collections; using System.Collections.Generic; using System.Linq; using System.Net.Http; +using System.Web; namespace EasyBL.WEBAPP.ShowEasy { @@ -1293,6 +1294,8 @@ namespace EasyBL.WEBAPP.ShowEasy oEmail.Attachments = null; oEmail.EmailTo = toEmail; //var bSend = new MailService(sORIGID, true).MailFactory(oEmail, out sError); + + oEmail.EmailBody = HttpContext.Current.Server.HtmlDecode(oEmail.EmailBody); SendEmailTask.send(sORIGID, true, oEmail, sError); } @@ -1359,6 +1362,8 @@ namespace EasyBL.WEBAPP.ShowEasy oEmail.Attachments = null; oEmail.EmailTo = toEmail; //var bSend = new MailService(sORIGID, true).MailFactory(oEmail, out sError); + + oEmail.EmailBody = HttpContext.Current.Server.HtmlDecode(oEmail.EmailBody); SendEmailTask.send(sORIGID, true, oEmail, sError); } }