Commit 130ebe9e authored by Łukasz Nowak's avatar Łukasz Nowak

- use nice From header fallback to send system messages


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28200 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d1eea24
...@@ -317,8 +317,12 @@ class NotificationTool(BaseTool): ...@@ -317,8 +317,12 @@ class NotificationTool(BaseTool):
default_from_email = portal.email_from_address default_from_email = portal.email_from_address
default_to_email = getattr(portal, 'email_to_address', default_to_email = getattr(portal, 'email_to_address',
default_from_email) default_from_email)
default_from_name = portal.title
default_from_name = getattr(portal, 'email_from_name', default_from_name)
if from_person is None: if from_person is None:
low_level_kw['from_url'] = default_from_email # when sending without sender defined compose identifiable From header
low_level_kw['from_url'] = '%s <%s>' % (default_from_name,
default_from_email)
if not to_person_list: if not to_person_list:
low_level_kw['to_url'] = default_to_email low_level_kw['to_url'] = default_to_email
if attachment_list is not None: if attachment_list is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment