lib/cogi_email/checker.rb
##
# Returns server object for given email address or throws exception
# Object returned isn't yet connected. It has internally a list of
# real mail servers got from MX dns lookup
#
# Reference:
#   https://github.com/kamilc/email_verifier/blob/master/lib/email_verifier/checker.rb
Returns server object for given email address or throws exception
Object returned isn't yet connected. It has internally a list of
real mail servers got from MX dns lookup


Returns server object for given email address or throws exception Object returned isn ' t yet connected . It has internally a list of real mail servers got from MX dns lookup
def ensure_250(smtp_return)
      if smtp_return.status.to_i == 250
        return true
      else
        raise CogiEmail::FailureException.new "Mail server responded with #{smtp_return.status} when we were expecting 250"
      end
    end
def ensure_250 ( smtp_return ) if smtp_return . status . to_i == 250 return true else raise CogiEmail :: FailureException . new "Mail server responded with #{smtp_return.status} when we were expecting 250" end end
Returns server object for given email address or throws exception
Object returned isn't yet connected.
Returns server object for given email address or throws exception Object returned isn ' t yet connected .
smtp_return
<not_specific>