| [ Index ] |
PHP Cross Reference of MantisBT |
[Source view] [Print] [Project Stats]
Disposable Email Checker - a static php based check for spam emails
| Copyright: | Copyright (C) 2007-2008 Victor Boctor |
| Version: | 1.1.0-git - Release Date: 13-Apr-2008 |
| File Size: | 453 lines (12 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
DisposableEmailChecker:: (10 methods):
is_disposable_email()
is_forwarding_email()
is_trash_email()
is_shredder_email()
is_time_bound_email()
is_free_email()
is_open_email()
echo_results()
echo_stats()
_get_domain_from_address()
Class: DisposableEmailChecker - X-Ref
A class that checks an email address and provides some facts about whether| is_disposable_email( $p_email ) X-Ref |
| Determines if the email address is disposable. returns: true: disposable, false: non-disposable. param: $p_email The email address to validate. |
| is_forwarding_email( $p_email ) X-Ref |
| Determines if the email address is disposable email that forwards to users' email address. This is one of the best kind of disposable addresses since emails end up in the user's inbox unless the user cancel the address. returns: true: disposable forwarding, false: otherwise. param: $p_email The email address to check. |
| is_trash_email( $p_email ) X-Ref |
| 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. returns: true: disposable trash mail, false: otherwise. param: $p_email The email address to check. |
| is_shredder_email( $p_email ) X-Ref |
| Determines if the email address is a shredder email address. Shredder email address delete all received emails without forwarding them or making them available for a user to check. returns: true: shredded disposable email, false: otherwise. param: $p_email The email address to check. |
| is_time_bound_email( $p_email ) X-Ref |
| Determines if the email address is time bound, these are the disposable addresses that auto expire after a pre-configured time. For example, 10 minutes, 1 hour, 2 hours, 1 day, 1 month, etc. These address can also be trash emails or forwarding emails. returns: true: time bound disposable email, false: otherwise. param: $p_email The email address to check. |
| is_free_email( $p_email ) X-Ref |
| See is_open_domain() for details. |
| is_open_email( $p_email ) X-Ref |
| 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. returns: true: open domain email, false: otherwise. param: $p_email The email address to check. |
| echo_results( $p_email ) X-Ref |
| A debugging function that takes in an email address and dumps out the details for such email. param: $p_email The email address to echo results for. This must be a |
| echo_stats() X-Ref |
| A debugging function that outputs some statistics about the number of domains in each category. |
| _get_domain_from_address( $p_email ) X-Ref |
| A helper function that takes in an email address and returns a lower case domain. returns: The lower case domain or empty string if email not valid. param: $p_email The email address to extra the domain from. |
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |