summaryrefslogtreecommitdiffstats
path: root/lib/mail.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-04 21:10:18 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-04 21:10:18 +0100
commit6019cdd5bdba8623673299e9ae7b765bef8235a9 (patch)
tree9ee783399c7b6cbf11a0cdde7dae57de7bbe4a0f /lib/mail.php
parentee00ddeb60b98b9a817bc93afea5bf9e410e612b (diff)
downloadnextcloud-server-6019cdd5bdba8623673299e9ae7b765bef8235a9.tar.gz
nextcloud-server-6019cdd5bdba8623673299e9ae7b765bef8235a9.zip
adding test case for getDefaultEmailAddress() + fixing #1844 again
Diffstat (limited to 'lib/mail.php')
-rw-r--r--lib/mail.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/mail.php b/lib/mail.php
index 22194045a76..61634632efc 100644
--- a/lib/mail.php
+++ b/lib/mail.php
@@ -119,4 +119,12 @@ class OC_Mail {
return($txt);
}
+
+ /**
+ * @param string $emailAddress a given email address to be validated
+ * @return bool
+ */
+ public static function ValidateAddress($emailAddress) {
+ return PHPMailer::ValidateAddress($emailAddress);
+ }
}