Important: Address must be passed in same encoding as currently set in PHPMailer::$CharSet.
This function silently returns unmodified address if:
- No conversion is necessary (i.e. domain name is not an IDN, or is already in ASCII form)
- Conversion to punycode is impossible (e.g. required PHP functions are not available)
or fails for any reason (e.g. domain has characters not allowed in an IDN)
public punyencodeAddress ( string $address ) : string | ||
$address | string | The email address to convert |
return | string | The encoded address in ASCII form |