PHPMailer\PHPMailer

PHPMailer::idnSupported()public staticWP 1.0

Tells whether IDNs (Internationalized Domain Names) are supported or not. This requires the intl and mbstring PHP extensions.

Метод класса: PHPMailer{}

Хуков нет.

Возвращает

true|false. true if required functions for IDN support are present

Использование

$result = PHPMailer::idnSupported();

Код PHPMailer::idnSupported() WP 6.1.1

public static function idnSupported()
{
    return function_exists('idn_to_ascii') && function_exists('mb_convert_encoding');
}