fix(SMTP): config to disable EHLO after AUTH

This commit is contained in:
s-aga-r 2026-04-23 11:25:54 +05:30
parent 1cf89c9bc9
commit 7f355b3f53

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