Class: SmtpProviderOverrides
- Inherits:
-
Object
- Object
- SmtpProviderOverrides
- Defined in:
- lib/smtp_provider_overrides.rb
Class Method Summary collapse
-
.authentication_override(host) ⇒ Object
Ideally we (or net-smtp) would automatically detect the correct authentication method, but this is sufficient for our purposes because we know certain providers need certain authentication methods.
Class Method Details
.authentication_override(host) ⇒ Object
Ideally we (or net-smtp) would automatically detect the correct authentication method, but this is sufficient for our purposes because we know certain providers need certain authentication methods. This may need to change when we start to use XOAUTH2 for SMTP.
8 9 10 11 |
# File 'lib/smtp_provider_overrides.rb', line 8 def self.authentication_override(host) return "login" if %w[smtp.office365.com smtp-mail.outlook.com].include?(host) GlobalSetting.smtp_authentication end |