Commit ea33324f authored by Yoshinori Okuji's avatar Yoshinori Okuji

Try email_to_address to get the default email address.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5106 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a13bc2c4
...@@ -162,7 +162,7 @@ class Message: ...@@ -162,7 +162,7 @@ class Message:
#LOG('notifyUser begin', 0, str(self.user_name)) #LOG('notifyUser begin', 0, str(self.user_name))
user_email = activity_tool.portal_membership.getMemberById(self.user_name).getProperty('email') user_email = activity_tool.portal_membership.getMemberById(self.user_name).getProperty('email')
if user_email in ('', None): if user_email in ('', None):
user_email = activity_tool.email_from_address user_email = getattr(activity_tool, 'email_to_address', activity_tool.email_from_address)
#LOG('notifyUser user_email', 0, str(user_email)) #LOG('notifyUser user_email', 0, str(user_email))
mail_text = """From: %s mail_text = """From: %s
To: %s To: %s
......
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