diff --git a/lib/valid_email2/address.rb b/lib/valid_email2/address.rb
index <HASH>..<HASH> 100644
--- a/lib/valid_email2/address.rb
+++ b/lib/valid_email2/address.rb
@@ -21,10 +21,8 @@ module ValidEmail2
       return false if @parse_error
 
       if address.domain && address.address == @raw_address
-        tree = address.send(:tree)
-
         # Valid address needs to have a dot in the domain
-        tree.domain.dot_atom_text.elements.size > 1
+        !!address.domain.match(/\./)
       else
         false
       end
Count the dots in the domain without using the tree method

Instead of using the private method #tree on the address to count the
dots in the domain we simply match if there are any at all.
This allows us to be compatible with the latest mail gem version which
has deprecated the #tree.