Sha256: 313de056a9539eb7f6cd477c1e383e8bd39e57ef7e0950107d608a960571861d
Contents?: true
Size: 902 Bytes
Versions: 5
Compression:
Stored size: 902 Bytes
Contents
module StatusCat module Checkers class ActionMailer < Base def initialize @value = "#{address}:#{port}" return if ::ActionMailer::Base.delivery_method == :test @status = fail_on_exception { test } end def test Net::SMTP.start(address, port, domain, user_name, password, authentication) do |smtp| smtp.helo(domain) end return nil end def config @config ||= ::ActionMailer::Base.smtp_settings end def address return config[:address] end def authentication return config[:authentication] end def domain return config[:domain] end def password return config[:password] end def port return config[:port] end def user_name return config[:user_name] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems