As mentioned above.
Here’s a snippet:
$model=SomeModel::model()->findByPk($someId);
$model->email = $_POST['email'];
$model->save();
When $_POST['email'] is test@asdf134.com it fails.
When $_POST['email'] is test@hotmail.com it is successful.
What could be wrong with this? Also it doesn’t show any format error when I used test@asdf134.com and logs are exactly the same except for the emails set.
Does Yii authenticates email?
TIA
Setting checkMX to true will force it to validate against DNS records.
http://www.haldwaniuk.in/validating-email-in-yii/