Yii Framework Forum: Customize Email Validation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Customize Email Validation

#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.

emailvalidation

Customize Email Validation

Customize Email Validation

Download Zip Folder.

Put into protected/Extension Directory.

You can customize this extension as per your requirement.

Usage:

array('email', 'ext.Email'),

Attached File(s)

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

Ravi Thanki
Yii,Cakephp and Magento Developer,
blog:http://ravithanki.wordpress.com
0

#2 User is offline   CeBe 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 359
  • 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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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