Skip to content

A platform for community discussion. Free, open, simple.

FIX: Add Azure communication service endpoint to SMTP authentication override (#33226)

Justin Moore9125f85e697d
diff --git a/lib/smtp_provider_overrides.rb b/lib/smtp_provider_overrides.rb
index 6c33ee34ccd..15ac7770fed 100644
--- a/lib/smtp_provider_overrides.rb
+++ b/lib/smtp_provider_overrides.rb
@@ -6,7 +6,7 @@ class SmtpProviderOverrides
# need certain authentication methods. This may need to change when we start to
# use XOAUTH2 for SMTP.
def self.authentication_override(host)
- return "login" if %w[smtp.office365.com smtp-mail.outlook.com].include?(host)
+ return "login" if %w[smtp.office365.com smtp-mail.outlook.com smtp.azurecomm.net].include?(host)
GlobalSetting.smtp_authentication
end
end