Recipent name patch for names containing no utf-8 chars

This commit is contained in:
blagoja 2023-04-25 15:41:45 +02:00
parent e64819da93
commit 9aa3042d98
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/ckan/lib/mailer.py
+++ b/ckan/lib/mailer.py
@@ -121,7 +121,7 @@ def mail_recipient(recipient_name, recipient_email, subject,
'''Sends an email'''
site_title = config.get('ckan.site_title')
site_url = config.get('ckan.site_url')
- return _mail_recipient(recipient_name, recipient_email,
+ return _mail_recipient("", recipient_email,
site_title, site_url, subject, body,
body_html=body_html, headers=headers)