PHPMailer\PHPMailer
PHPMailer::idnSupported()
Tells whether IDNs (Internationalized Domain Names) are supported or not. This requires the intl and mbstring PHP extensions.
Method of the class: PHPMailer{}
No Hooks.
Return
true|false
. true if required functions for IDN support are present
Usage
$result = PHPMailer::idnSupported();
PHPMailer::idnSupported() PHPMailer::idnSupported code WP 6.6.2
public static function idnSupported() { return function_exists('idn_to_ascii') && function_exists('mb_convert_encoding'); }