mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
[refactor modules]
This commit is contained in:
@@ -94,7 +94,7 @@ class Newsletter(Document):
|
||||
|
||||
sender = self.send_from or frappe.utils.get_formatted_email(self.owner)
|
||||
|
||||
from frappe.utils.email_lib.bulk import send
|
||||
from frappe.email.bulk import send
|
||||
|
||||
if not frappe.flags.in_test:
|
||||
frappe.db.auto_commit_on_many_writes = True
|
||||
|
||||
@@ -8,7 +8,7 @@ import frappe
|
||||
from frappe import _
|
||||
from frappe.utils import cint
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils.email_lib.receive import POP3Mailbox
|
||||
from frappe.email.receive import POP3Mailbox
|
||||
import _socket, poplib
|
||||
|
||||
class SupportEmailSettings(Document):
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe.utils import cstr, cint, decode_dict, today
|
||||
from frappe.utils.email_lib import sendmail
|
||||
from frappe.utils.email_lib.receive import POP3Mailbox
|
||||
from frappe.email import sendmail
|
||||
from frappe.email.receive import POP3Mailbox
|
||||
from frappe.core.doctype.communication.communication import _make
|
||||
|
||||
class SupportMailbox(POP3Mailbox):
|
||||
|
||||
Reference in New Issue
Block a user