mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
First implementation
This commit is contained in:
@@ -188,14 +188,9 @@ class mail
|
||||
return self::send_mail($app, $subject, $body, $to);
|
||||
}
|
||||
|
||||
public static function validateEmail($email)
|
||||
{
|
||||
return PHPMailer::ValidateAddress($email);
|
||||
}
|
||||
|
||||
public static function send_mail(Application $app, $subject, $body, $to, $from = false, $files = array(), $reading_confirm_to = false)
|
||||
{
|
||||
if ( ! isset($to['email']) || ! PHPMailer::ValidateAddress($to['email'])) {
|
||||
if ( ! isset($to['email']) || !\Swift_Validate::email($to['email'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user