From c40b5a263d7d207ac0a2822b91cee966b9b19aa7 Mon Sep 17 00:00:00 2001
From: chausman <chausman@nrao.edu>
Date: Tue, 9 Aug 2022 11:17:39 -0600
Subject: [PATCH] make notification service use utf8 instead

---
 .../workspaces/notification/services/notification_service.py  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shared/workspaces/workspaces/notification/services/notification_service.py b/shared/workspaces/workspaces/notification/services/notification_service.py
index d7a8cc327..0bdbcb69a 100644
--- a/shared/workspaces/workspaces/notification/services/notification_service.py
+++ b/shared/workspaces/workspaces/notification/services/notification_service.py
@@ -81,8 +81,8 @@ class NotificationService(NotificationServiceIF):
                 if not receiver_email:
                     return "No PI email found."
                 for contact in receiver_email:
-                    r = server.sendmail(sender_email, contact, file.content)
+                    r = server.sendmail(sender_email, contact, file.content.encode("utf8"))
             else:
-                r = server.sendmail(sender_email, receiver_email, file.content)
+                r = server.sendmail(sender_email, receiver_email, file.content.encode("utf8"))
 
         return r
-- 
GitLab