mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
dont send mail back to mailer daemon
This commit is contained in:
@@ -121,7 +121,8 @@ class SupportMailbox(POP3Mailbox):
|
|||||||
|
|
||||||
# send auto reply
|
# send auto reply
|
||||||
if cint(self.email_settings.send_autoreply):
|
if cint(self.email_settings.send_autoreply):
|
||||||
self.send_auto_reply(d)
|
if "MAILER-DAEMON" not in d.raised_by:
|
||||||
|
self.send_auto_reply(d)
|
||||||
|
|
||||||
webnotes.conn.commit()
|
webnotes.conn.commit()
|
||||||
# extract attachments
|
# extract attachments
|
||||||
@@ -165,7 +166,7 @@ We will get back to you as soon as possible
|
|||||||
|
|
||||||
""" + cstr(signature))
|
""" + cstr(signature))
|
||||||
|
|
||||||
from webnotes.utils.email_lib import sendmail
|
from webnotes.utils.email_lib import sendmail
|
||||||
|
|
||||||
sendmail(\
|
sendmail(\
|
||||||
recipients = [cstr(d.raised_by)], \
|
recipients = [cstr(d.raised_by)], \
|
||||||
|
|||||||
Reference in New Issue
Block a user