added standard mail footer and function to get monthly bulk mail limit

This commit is contained in:
Rushabh Mehta 2012-08-03 14:15:07 +05:30
parent ba54cf6eef
commit e5984873e6

View File

@ -15,9 +15,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# add startup propertes # add startup propertes
mail_footer = """<div style="padding: 7px; text-align: right; color: #888"><small>Sent via
<a style="color: #888" href="https://erpnext.com">ERPNext</a></div>"""
add_in_head = """ def get_monthly_bulk_mail_limit():
<style> import webnotes
# if global settings, then 500 or unlimited
</style> if webnotes.conn.get_value('Email Settings', None, 'outgoing_mail_server'):
""" return 999999
else:
return 500