From ad86d0f474a220f13637ebff4a808f75a82e8acf Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 24 Aug 2012 14:47:30 +0530 Subject: [PATCH] show message after sending test email --- erpnext/support/doctype/newsletter/newsletter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/support/doctype/newsletter/newsletter.py b/erpnext/support/doctype/newsletter/newsletter.py index 51f7938e34f..4048a05db22 100644 --- a/erpnext/support/doctype/newsletter/newsletter.py +++ b/erpnext/support/doctype/newsletter/newsletter.py @@ -82,6 +82,7 @@ class DocType(): send(recipients = recipients, subject = self.doc.subject, message = self.get_message(), doctype = doctype, email_field = args["email_field"], first_name_field = args["first_name_field"], last_name_field = "") + webnotes.msgprint("""Scheduled to send to %s""" % self.doc.test_email_id) def get_recipients(self, key): recipients = webnotes.conn.sql(self.query_map[key]) @@ -97,7 +98,6 @@ class DocType(): def send(self, query_key, doctype): recipients = self.get_recipients(query_key) - webnotes.errprint(recipients) args = self.dt_map[doctype] self.send_count[doctype] = self.send_count.setdefault(doctype, 0) + len(recipients)