17 $email = $this->getItemValue();
22 $convertingPart = $email;
24 if (count(explode(
'@', $email)) === 2)
26 $list = explode(
'@', $email);
27 $convertingPart = array_pop($list);
28 $firstPart = array_shift($list) .
'@';
31 $encoder = new \CBXPunycode();
32 $encodedPart = $encoder->encode($convertingPart);
33 if ($encodedPart !==
false)
35 return $firstPart . $encodedPart;