/** * Determines if the email address is an email address in an open domain. These are * addresses that users can sign up for, typically free. They then has to login to * these address to get the emails. These are not considered to be * disposable emails, however, if the application is providing a free * trial for an expensive server, then users can signup for more accounts * to get further trials. * * If applications are to block these addresses, it is important to be aware * that some users use open webmail as their primary email and that such * service providers include hotmail, gmail, and yahoo. * * @param $p_email The email address to check. * @returns true: open domain email, false: otherwise. */ public static function is_open_email($p_email) { $t_domain = DisposableEmailChecker::_get_domain_from_address($p_email); if (DisposableEmailChecker::$open_domains_array === null) { DisposableEmailChecker::$open_domains_array = DisposableEmailChecker::_load_file('open_domains'); } return in_array($t_domain, DisposableEmailChecker::$open_domains_array); }