summaryrefslogtreecommitdiffstats
path: root/lib/private/mail.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/mail.php')
-rw-r--r--lib/private/mail.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/mail.php b/lib/private/mail.php
index 79f51609631..f9083cc4e64 100644
--- a/lib/private/mail.php
+++ b/lib/private/mail.php
@@ -137,6 +137,9 @@ class OC_Mail {
* @return string
*/
public static function buildAsciiEmail($emailAddress) {
+ if (!function_exists('idn_to_ascii')) {
+ return $emailAddress;
+ }
list($name, $domain) = explode('@', $emailAddress, 2);
$domain = idn_to_ascii($domain);