diff options
Diffstat (limited to 'it_mail.class')
-rw-r--r-- | it_mail.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class index 5924569..63bcc28 100644 --- a/it_mail.class +++ b/it_mail.class @@ -507,7 +507,7 @@ static function address_error($addresslist) foreach (self::addrlist_split($addresslist) as list($dummy, $email)) { $email = self::email_encode($email); - if (filter_var($email, FILTER_VALIDATE_EMAIL) === false && !it::match('^\s*[a-z][-a-z0-9]*\s*$', $email)) + if (filter_var($email, FILTER_VALIDATE_EMAIL, FILTER_FLAG_EMAIL_UNICODE) === false && !it::match('^\s*[a-z][-a-z0-9]*\s*$', $email)) return "invalid format on $email"; } } |