Add support of punycode domains in emails

This commit is contained in:
Alex Sherman 2020-06-15 15:57:44 +05:00
parent 56ac816dd1
commit b4369bdcd0
6 changed files with 77 additions and 21 deletions

View file

@ -30,8 +30,10 @@ Truemail.configure do |config|
# Available validation types: :regex, :mx, :smtp
if Rails.env.production?
config.default_validation_type = :smtp
else
elsif Rails.env.test?
config.default_validation_type = :regex
else
config.default_validation_type = :mx
end
# Optional parameter. You can predefine which type of validation will be used for domains.