Merge pull request #98 from keitaroinc/email-reipient-name

Recipent name patch for names containing no utf-8 chars
This commit is contained in:
Blagoja Bozinovski 2023-04-25 21:08:46 +02:00 committed by GitHub
commit 4ccc42fa28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)