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

@ -39,8 +39,7 @@ class EmailAddressVerification < ApplicationRecord
end
def verify
# media = success ? :mx : :smtp
media = :regex
media = :mx
validation_request = Truemail.validate(email, with: media)
if validation_request.result.success