Class: Truemail::Validate::Mx
- Defined in:
- lib/truemail/validate/mx.rb
Constant Summary collapse
- ERROR =
'target host(s) not found'
- NULL_MX_RECORD =
'null_mx_record'
Instance Attribute Summary
Attributes inherited from Worker
Instance Method Summary collapse
Methods inherited from Worker
Constructor Details
This class inherits a constructor from Truemail::Worker
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 |
# File 'lib/truemail/validate/mx.rb', line 9 def run return false unless Truemail::Validate::Regex.check(result) return true if success(email_domain_valid? && mx_lookup && domain_not_include_null_mx) mail_servers.clear && add_error(Truemail::Validate::Mx::ERROR) false end |