/home/techb158/exp.abdallabala.com/vendor/symfony/mime/Encoder
NameSizeModeActions
AddressEncoderInterface.php6890644editdlrm
Base64ContentEncoder.php13270644editdlrm
Base64Encoder.php12810644editdlrm
Base64MimeHeaderEncoder.php12870644editdlrm
ContentEncoderInterface.php6680644editdlrm
EightBitContentEncoder.php8340644editdlrm
EncoderInterface.php7170644editdlrm
IdnAddressEncoder.php11980644editdlrm
MimeHeaderEncoderInterface.php4670644editdlrm
QpContentEncoder.php18200644editdlrm
QpEncoder.php78880644editdlrm
QpMimeHeaderEncoder.php10750644editdlrm
Rfc2231Encoder.php14410644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/symfony/mime/Encoder/IdnAddressEncoder.php (1198B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Mime\Encoder; /** * An IDN email address encoder. * * Encodes the domain part of an address using IDN. This is compatible will all * SMTP servers. * * Note: It leaves the local part as is. In case there are non-ASCII characters * in the local part then it depends on the SMTP Server if this is supported. * * @author Christian Schmidt */ final class IdnAddressEncoder implements AddressEncoderInterface { /** * Encodes the domain part of an address using IDN. */ public function encodeString(string $address): string { $i = strrpos($address, '@'); if (false !== $i) { $local = substr($address, 0, $i); $domain = substr($address, $i + 1); if (preg_match('/[^\x00-\x7F]/', $domain)) { $address = sprintf('%s@%s', $local, idn_to_ascii($domain, 0, \INTL_IDNA_VARIANT_UTS46)); } } return $address; } }