Reputation: 622
I wanted to integrate a verified email address functionality in CakePHP 1.3.
I have used valid email address regular expressions but I have never ever verified an email address' domain (a valid domain name means existing domain name).
I know how this is done in plain PHP but I want to use CakePHP's functionality to achieve this.
Upvotes: 3
Views: 637
Reputation: 4776
assign this into your model
public $validate = array(
'email' => array(
'email' => array(
'rule' => array('email',true),
'message' => 'Your custom message here',
//'allowEmpty' => false,
//'required' => false,
//'last' => false, // Stop validation after this rule
//'on' => 'create', // Limit validation to 'create' or 'update' operations
),
);
Upvotes: 1