Project

General

Profile

Actions

Feature #45121

closed

Hook to modify t3lib_div::validEmail

Added by Mathias Saalwächter almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-02-03
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

To add more rules it would be great to have a hook inside t3lib_div::validEmail.

Actions #1

Updated by Ingo Renner almost 12 years ago

  • Status changed from New to Rejected

validating emails yourself has never been a good idea.

Actions #2

Updated by Mathias Saalwächter almost 12 years ago

I don't think so. I want to block email adresses of providers for temporary email adresses like trash-mail.com or milinator.com. Additionaly I want to check the MX Record of the domain from the email address.

And for this it would be nice to use t3lib_div:validEmail and not a selfcoded class and don't need to change in Extensions which use the t3lib_div:validEmail the used function to my own validate function.

Actions #3

Updated by Ingo Renner almost 12 years ago

Ok I see the point here, however t3lib_div::validEmail() really just checks for the validity of an email using PHP's filter_var() function.

I think what you want to do makes sense, but should not be in t3lib_div as it would just bloat up that class even more. Instead, how about going forward and creating an email validator class that can be extended?

Actions

Also available in: Atom PDF