iterate on other footers (smtp)

This commit is contained in:
Pratik Vyas 2013-12-23 11:54:52 +05:30
parent f647430ebc
commit 7b2ffcee6f

View file

@ -106,8 +106,10 @@ class EMail:
"""append a footer (signature)"""
footer = footer or ""
footer += webnotes.conn.get_value('Control Panel',None,'mail_footer') or ''
other_footers = webnotes.get_hooks().mail_footer or []
for f in webnotes.get_hooks().mail_footer:
for f in other_footers:
footer += f
return footer