diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-05-30 18:33:14 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-05-30 18:34:53 -0400 |
commit | 96d0d4533c37f23e3e5403a336aaed5a42ce90d5 (patch) | |
tree | 50ece43827464a4cc5d95ba16c69e702d4e62fb0 /lib | |
parent | acf5cd0a4b55c1b6817a9956a57103b40483d82f (diff) | |
download | ampache-96d0d4533c37f23e3e5403a336aaed5a42ce90d5.tar.gz ampache-96d0d4533c37f23e3e5403a336aaed5a42ce90d5.tar.bz2 ampache-96d0d4533c37f23e3e5403a336aaed5a42ce90d5.zip |
Drop validateEmail
PHPMailer will validate the format of the address, and that's all we
really want.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/mailer.class.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/class/mailer.class.php b/lib/class/mailer.class.php index 1e5bffa5..f9894080 100644 --- a/lib/class/mailer.class.php +++ b/lib/class/mailer.class.php @@ -48,6 +48,15 @@ class Mailer { } // Constructor /** + * validate_address + * + * Checks whether what we have looks like a valid address. + */ + public static function validate_address($address) { + return PHPMailer::ValidateAddress($address); + } + + /** * set_default_sender * * Does the config magic to figure out the "system" email sender and |