81 if (isset(
$_POST[$this->
field]) && $_POST[$this->field] != $this->empty)
84 $emails = explode(
",", $emails);
86 if(count($emails) > 0)
91 if (preg_match(
'/\\{.*?\\}/',
$email))
continue;
94 if(preg_match(
'/\\[+[a-zA-Z0-9_-]+\\]/',
$email))
97 if(!preg_match(
'/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i',
$email))
99 return "<warning>{$this->title} has an invalid email address '{$email}'.</warning>";
static cleanup($recipients)
Given a string of emails, clean up the list, removing any ";" or extra spaces, or trailing punctuatio...
Email recipient list validator.
EmailListValidator($field, $title)
static usingFeature()
Uses the specified framework feature(s).
static usingFile()
Uses the specified framework file(s) from the framework directory.