Merge pull request #38831 from s-aga-r/fix-66079
fix(SMTP): config to disable EHLO after AUTH
This commit is contained in:
commit
25c95c7f9d
1 changed files with 2 additions and 1 deletions
|
|
@ -93,7 +93,8 @@ class SMTPServer:
|
|||
frappe.msgprint(res[1], raise_exception=frappe.OutgoingEmailError)
|
||||
|
||||
# Re-issue EHLO after AUTH to refresh server capabilities
|
||||
_session.ehlo()
|
||||
if not frappe.conf.smtp_no_ehlo_after_auth:
|
||||
_session.ehlo()
|
||||
|
||||
self._session = _session
|
||||
self._enqueue_connection_closure()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue