public static boolean isValidEmailAddress(String address) {
        if (address == null) {
            return false;
        }

        if (!address.contains("@")) {
            return false;
        }

        try {
            InternetAddress.parse(address);
            return true;
        }
        catch (AddressException e) {
            return false;
        }
    }
Returns true if the string passed in is a valid Email address.

@param address Email address to test for validity.
@return true if the string passed in is a valid email address.
xmppserver/src/main/java/org/jivesoftware/util/StringUtils.java