Changeset 1640 in products
- Timestamp:
- Feb 4, 2010 2:05:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecomments/trunk/quintagroup/plonecomments/utils.py
r1626 r1640 201 201 if args: 202 202 msg = getMsg(context, template, args) 203 p_utils = context.plone_utils204 site_props = context.portal_properties.site_properties205 host = p_utils.getMailHost()203 charset = context.portal_properties.site_properties.getProperty('default_charset', 'utf-8') 204 msg = msg.encode(charset) 205 host = context.plone_utils.getMailHost() 206 206 try: 207 207 host.secureSend(msg, user_email, admin_email, … … 209 209 subtype = 'plain', 210 210 debug = False, 211 charset = site_props.getProperty('default_charset', 'utf-8'))211 charset = charset) 212 212 except smtplib.SMTPRecipientsRefused: 213 log.error(_('SMTPRecipientsRefused: Could not send the email '213 log.error(_('SMTPRecipientsRefused: Could not send the email ' 214 214 'notification. Have you configured an email server for Plone?')) 215 215
Note: See TracChangeset
for help on using the changeset viewer.