Customize Email Validation

Hello Everyone,

Yii default email validation will accept string like test@gmail.123 but its not a valid string. In below extension its not allowed.


Customize Email Validation

Customize Email Validation

Download Zip Folder.

Put into protected/Extension Directory.

You can customize this extension as per your requirement.


array(‘email’, ‘ext.Email’),

As far as I see it is not forbidden by DNS that tld contains numbers. When you need a specific pattern to match emails, you can configure CEmailValidators ‘pattern’ property.