From 96d0d4533c37f23e3e5403a336aaed5a42ce90d5 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Thu, 30 May 2013 18:33:14 -0400 Subject: Drop validateEmail PHPMailer will validate the format of the address, and that's all we really want. --- lib/class/mailer.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/class') 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 @@ -47,6 +47,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 * -- cgit