コード例 #1
0
 protected function checkMail($mail)
 {
     $mail = $this->getCheckVal([$mail]);
     $objRegModel = new RegModel();
     $secCh = $objRegModel->checkMatchesMail($mail[0]);
     $firstCh = preg_match("~^([a-z0-9_-]+\\.)*[a-z0-9_-]+@[a-z0-9_-]+(\\.[a-z0-9_-]+)*\\.[a-z]{2,6}\$~", $mail[0]);
     return empty($secCh) && $firstCh ? true : false;
 }