Yii Framework Forum: Customize Email Validation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Customize Email Validation Rate Topic: -----

#1 User is offline   Ravi P Thanki 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 61
  • Joined: 18-March 13
  • Location:Ahmedabad

Posted 23 May 2013 - 11:39 PM

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'),

Attached File(s)

  • Attached File  Email.zip (969bytes)
    Number of downloads: 33

Ravi Thanki
Yii,Cakephp and Magento Developer,

#2 User is offline   CeBe 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 572
  • Joined: 16-July 10
  • Location:Berlin. Germany

Posted 24 May 2013 - 06:28 AM

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.

Share this topic:

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users