lib/private/Mail/Message.php
/**
	 * SwiftMailer does currently not work with IDN domains, this function therefore converts the domains
	 * FIXME: Remove this once SwiftMailer supports IDN
	 *
	 * @param array $addresses Array of mail addresses, key will get converted
	 * @return array Converted addresses if `idn_to_ascii` exists
	 */
SwiftMailer does currently not work with IDN domains, this function therefore converts the domains
FIXME: Remove this once SwiftMailer supports IDN

@param array $addresses Array of mail addresses, key will get converted
@return array Converted addresses if `idn_to_ascii` exists
SwiftMailer does currently not work with IDN domains this function therefore converts the domains FIXME : Remove this once SwiftMailer supports IDN @param array $addresses Array of mail addresses key will get converted @return array Converted addresses if ` idn_to_ascii ` exists
protected function convertAddresses($addresses) {
		if (!function_exists('idn_to_ascii')) {
			return $addresses;
		}
		$convertedAddresses = array();
		foreach($addresses as $email => $readableName) {
			if(!is_numeric($email)) {
				list($name, $domain) = explode('@', $email, 2);
				$domain = idn_to_ascii($domain);
				$convertedAddresses[$name.'@'.$domain] = $readableName;
			} else {
				list($name, $domain) = explode('@', $readableName, 2);
				$domain = idn_to_ascii($domain);
				$convertedAddresses[$email] = $name.'@'.$domain;
			}
		}
		return $convertedAddresses;
	}
protected function convertAddresses ( $ addresses ) { if ( ! function_exists ( 'idn_to_ascii' ) ) { return $ addresses ; } $ convertedAddresses = array ( ) ; foreach ( $ addresses as $ email => $ readableName ) { if ( ! is_numeric ( $ email ) ) { list ( $ name , $ domain ) = explode ( '@' , $ email , 2 ) ; $ domain = idn_to_ascii ( $ domain ) ; $ convertedAddresses [ $ name . '@' . $ domain ] = $ readableName ; } else { list ( $ name , $ domain ) = explode ( '@' , $ readableName , 2 ) ; $ domain = idn_to_ascii ( $ domain ) ; $ convertedAddresses [ $ email ] = $ name . '@' . $ domain ; } } return $ convertedAddresses ; }
SwiftMailer does currently not work with IDN domains, this function therefore converts the domains
 FIXME: Remove this once SwiftMailer supports IDN
SwiftMailer does currently not work with IDN domains this function therefore converts the domains FIXME : Remove this once SwiftMailer supports IDN