From 0da88398b495670636cb032ed5eefc75dd373f38 Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Mon, 20 Jun 2022 19:42:32 -0400 Subject: [PATCH] fix #2239 - email notification encoding to support all cultures --- Oqtane.Server/Infrastructure/Jobs/NotificationJob.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Oqtane.Server/Infrastructure/Jobs/NotificationJob.cs b/Oqtane.Server/Infrastructure/Jobs/NotificationJob.cs index 7818d9d3..9ad9bbfd 100644 --- a/Oqtane.Server/Infrastructure/Jobs/NotificationJob.cs +++ b/Oqtane.Server/Infrastructure/Jobs/NotificationJob.cs @@ -120,6 +120,10 @@ namespace Oqtane.Infrastructure mailMessage.Body += "Subject: " + notification.Subject + "\n\n"; mailMessage.Body += notification.Body; + // set encoding + mailMessage.SubjectEncoding = System.Text.Encoding.UTF8; + mailMessage.BodyEncoding = System.Text.Encoding.UTF8; + // send mail try {