Rushabh Mehta | 3966f1d | 2012-02-23 12:35:32 +0530 | [diff] [blame] | 1 | # ERPNext - web based ERP (http://erpnext.com) |
| 2 | # Copyright (C) 2012 Web Notes Technologies Pvt Ltd |
| 3 | # |
| 4 | # This program is free software: you can redistribute it and/or modify |
| 5 | # it under the terms of the GNU General Public License as published by |
| 6 | # the Free Software Foundation, either version 3 of the License, or |
| 7 | # (at your option) any later version. |
| 8 | # |
| 9 | # This program is distributed in the hope that it will be useful, |
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | # GNU General Public License for more details. |
| 13 | # |
| 14 | # You should have received a copy of the GNU General Public License |
| 15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | |
Rushabh Mehta | 2eef40b | 2012-07-16 14:16:57 +0530 | [diff] [blame] | 17 | # default settings that can be made for a profile. |
Anand Doshi | 486f9df | 2012-07-19 13:40:31 +0530 | [diff] [blame] | 18 | from __future__ import unicode_literals |
Pratik Vyas | c1e6e4c | 2011-06-08 14:37:15 +0530 | [diff] [blame] | 19 | |
Rushabh Mehta | 2eef40b | 2012-07-16 14:16:57 +0530 | [diff] [blame] | 20 | product_name = "ERPNext" |
| 21 | profile_defaults = { |
| 22 | "Company": "company", |
| 23 | "Territory": "territory" |
| 24 | } |
Rushabh Mehta | 49dc5da | 2012-08-03 16:02:24 +0530 | [diff] [blame] | 25 | |
Pratik Vyas | c1e6e4c | 2011-06-08 14:37:15 +0530 | [diff] [blame] | 26 | # add startup propertes |
Rushabh Mehta | e598487 | 2012-08-03 14:15:07 +0530 | [diff] [blame] | 27 | mail_footer = """<div style="padding: 7px; text-align: right; color: #888"><small>Sent via |
| 28 | <a style="color: #888" href="https://erpnext.com">ERPNext</a></div>""" |
| 29 | |
| 30 | def get_monthly_bulk_mail_limit(): |
| 31 | import webnotes |
| 32 | # if global settings, then 500 or unlimited |
| 33 | if webnotes.conn.get_value('Email Settings', None, 'outgoing_mail_server'): |
| 34 | return 999999 |
| 35 | else: |
Rushabh Mehta | 49dc5da | 2012-08-03 16:02:24 +0530 | [diff] [blame] | 36 | return 500 |