Email Validation Code And Email Exist Or Not

Email validation code for Model rules.

Also Email exis code for rules in Model.

Please Help any one.

Explain with sample code.

Here are some examples to start with.

array(‘user_email’, ‘email’, ‘allowEmpty’=>false),

array(‘user_email’, ‘exist’, ‘allowEmpty’=>‘false’, ‘attributeName’=>‘user_email’, ‘className’=>‘tbl_User’),