Merge pull request #38831 from s-aga-r/fix-66079

fix(SMTP): config to disable EHLO after AUTH
This commit is contained in:
Ejaaz Khan 2026-04-23 23:32:52 +05:30 committed by GitHub
commit 25c95c7f9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()