diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-04 21:10:18 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-04 21:10:18 +0100 |
commit | 6019cdd5bdba8623673299e9ae7b765bef8235a9 (patch) | |
tree | 9ee783399c7b6cbf11a0cdde7dae57de7bbe4a0f /lib/mail.php | |
parent | ee00ddeb60b98b9a817bc93afea5bf9e410e612b (diff) | |
download | nextcloud-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.php | 8 |
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); + } } |