Module: FreedomPatches::MailDisableStarttls
- Defined in:
- lib/freedom_patches/mail_disable_starttls.rb
Instance Method Summary collapse
Instance Method Details
#build_smtp_session ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/freedom_patches/mail_disable_starttls.rb', line 11 def build_smtp_session super.tap do |smtp| unless settings[:enable_starttls_auto] smtp.disable_starttls if smtp.respond_to?(:disable_starttls) end end end |