summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-05-30 18:33:14 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2013-05-30 18:34:53 -0400
commit96d0d4533c37f23e3e5403a336aaed5a42ce90d5 (patch)
tree50ece43827464a4cc5d95ba16c69e702d4e62fb0 /lib
parentacf5cd0a4b55c1b6817a9956a57103b40483d82f (diff)
downloadampache-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.php9
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