Skip to content

Commit

Permalink
Merge pull request #2247 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix #2239 - email notification encoding to support all cultures
  • Loading branch information
sbwalker authored Jun 20, 2022
2 parents c42de3d + 0da8839 commit fe72a10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Oqtane.Server/Infrastructure/Jobs/NotificationJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ public override string ExecuteJob(IServiceProvider provider)
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
{
Expand Down

0 comments on commit fe72a10

Please sign in to comment.