[minor] fixes in welcome mails

This commit is contained in:
Rushabh Mehta
2015-04-20 13:00:22 +05:30
parent 44aaa56000
commit e9bd77d674
3 changed files with 12 additions and 15 deletions

View File

@@ -60,8 +60,10 @@ def import_from(name, doctype):
@frappe.whitelist()
def add_subscribers(name, email_list):
if not isinstance(email_list, (list, tuple)):
email_list = email_list.replace(",", "\n").split("\n")
count = 0
for email in email_list.replace(",", "\n").split("\n"):
for email in email_list:
email = email.strip()
validate_email_add(email, True)