/** * Determines if the email address is trash email that doesn't forward to * user's email address. This kind of address can be checked using a * web page and no password is required for such check. Hence, data sent * to such address is not protected. Typically users use these addresses * to signup for a service, and then they never check it again. * * @param $p_email The email address to check. * @returns true: disposable trash mail, false: otherwise. */ public static function is_trash_email($p_email) { $t_domain = DisposableEmailChecker::_get_domain_from_address($p_email); if (DisposableEmailChecker::$trash_domains_array === null) { DisposableEmailChecker::$trash_domains_array = DisposableEmailChecker::_load_file('trash_domains'); } return in_array($t_domain, DisposableEmailChecker::$trash_domains_array); }