fix: check site conf before sending email
This commit is contained in:
@@ -14,7 +14,7 @@ class LMSJobApplication(Document):
|
||||
outgoing_email_account = frappe.get_cached_value(
|
||||
"Email Account", {"default_outgoing": 1, "enable_outgoing": 1}, "name"
|
||||
)
|
||||
if outgoing_email_account:
|
||||
if outgoing_email_account or frappe.conf.get("mail_login"):
|
||||
self.send_email_to_employer()
|
||||
|
||||
def validate_duplicate(self):
|
||||
|
||||
Reference in New Issue
Block a user