getValue()) != '') { $emails = explode(',', $this->getValue()); $emailValidator = new Zend_Validate_EmailAddress; $value = array(); foreach ($emails as $email) { $_email = trim($email); if (!$emailValidator->isValid($_email)) { Mage::getSingleton('adminhtml/session')->addNotice(Mage::helper('aw_hdu3')->__('%s is not valid email address.', $_email)); } else { $value[] = $_email; } } $this->setValue(implode(',', $value)); } else { $this->setValue(''); } return parent::_beforeSave(); } }