public static boolean isValidEmailAddress(final String address) {
        // MAIL FROM: <>
        if (address.length() == 0) {
            return true;
        }

        boolean result = false;
        try {
            final InternetAddress[] ia = InternetAddress.parse(address, true);
            if (ia.length == 0) {
                result = false;
            } else {
                result = true;
            }
        } catch (final AddressException ae) {
            result = false;
        }
        return result;
    }
@return true if the string is a valid email address
src/main/java/de/gessnerfl/fakesmtp/smtp/util/EmailUtils.java