v2.2.0: Feature/SMTP fail fast
Ability to use fail fast behaviour for SMTP validation layer. When smtp_fail_fast = true
it means that truemail
ends smtp validation session after first attempt on the first mx server in any fail cases (network connection/timeout error, smtp validation error). This feature helps to reduce total time of SMTP validation session up to 1 second.
Truemail.configure do |config|
config.smtp_fail_fast = true # by default it's equal to false
end
- Added
Truemail::Configuration#smtp_fail_fast
- Added
Truemail::Validate::Smtp#smtp_fail_fast?
- Added
Truemail::Validate::Smtp#filtered_mail_servers_by_fail_fast_scenario
- Updated
Truemail::Validate::Smtp#establish_smtp_connection
- Updated readme, changelog
- Updated gem version to
2.2.0