| [ Index ] |
|
Code source de Mantis 1.1.0rc3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 432 lignes (13 kb) |
| Inclus ou requis: | 1 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
DisposableEmailChecker:: (8 méthodes):
is_disposable_email()
is_forwarding_email()
is_trash_email()
is_shredder_email()
is_time_bound_email()
is_free_email()
echo_results()
_get_domain_from_address()
Classe: 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 |
| Determines if the email address is a free email address. These are addresses that users can sign up for 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 free webmail as their primary email and that such service providers include hotmail, gmail, and yahoo. |
| 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 |
| _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. |
| Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
|