You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
603 B

  1. <?php
  2. /**
  3. * Copyright (c) 2014 Lukas Reschke <lukas@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OCP\Mail;
  9. /**
  10. * Class Util provides some helpers for mail addresses
  11. *
  12. * @package OCP\Mail
  13. */
  14. class Util {
  15. /**
  16. * Checks if an e-mail address is valid
  17. *
  18. * @param string $email Email address to be validated
  19. * @return bool True if the mail address is valid, false otherwise
  20. */
  21. public static function validateMailAddress($email) {
  22. return \OC\Mail\Util::validateMailAddress($email);
  23. }
  24. }