fix email generation: remove 'encode()'
This commit is contained in:
parent
8a578b46a8
commit
eddb58c794
1 changed files with 4 additions and 2 deletions
|
@ -195,8 +195,10 @@ class SendEmail(FormController):
|
||||||
# TODO: remove duplicates
|
# TODO: remove duplicates
|
||||||
person = getPersonForUser(self.context, self.request)
|
person = getPersonForUser(self.context, self.request)
|
||||||
sender = person and adapted(person).email or 'loops@unknown.com'
|
sender = person and adapted(person).email or 'loops@unknown.com'
|
||||||
msg = MIMEText(message.encode('utf-8'), 'plain', 'utf-8')
|
#msg = MIMEText(message.encode('utf-8'), 'plain', 'utf-8')
|
||||||
msg['Subject'] = subject.encode('utf-8')
|
msg = MIMEText(message, 'plain', 'utf-8')
|
||||||
|
#msg['Subject'] = subject.encode('utf-8')
|
||||||
|
msg['Subject'] = subject
|
||||||
msg['From'] = sender
|
msg['From'] = sender
|
||||||
recipients = [r.strip() for r in recipients if r.strip()]
|
recipients = [r.strip() for r in recipients if r.strip()]
|
||||||
msg['To'] = ', '.join(recipients)
|
msg['To'] = ', '.join(recipients)
|
||||||
|
|
Loading…
Add table
Reference in a new issue