From 94743f58ee099d02b0c2a4030b980568ca4a8438 Mon Sep 17 00:00:00 2001 From: AntonyAntonio Date: Mon, 4 Jul 2016 15:47:28 -0300 Subject: [PATCH] (Guillermo) Add-email-sender-class 2 --- server/controllers/user/signup.php | 2 +- server/libs/EmailSender.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/controllers/user/signup.php b/server/controllers/user/signup.php index 990f0a8e..13d2fded 100644 --- a/server/controllers/user/signup.php +++ b/server/controllers/user/signup.php @@ -16,7 +16,7 @@ class SignUpController extends Controller { 'userEmail' => $email )); - EmailSender::validRegister($email); + EmailSender::validRegister($this->email); } public function requestUserData(){ $this->email = Controller::request('email'); diff --git a/server/libs/EmailSender.php b/server/libs/EmailSender.php index 895d1f79..b29981b1 100644 --- a/server/libs/EmailSender.php +++ b/server/libs/EmailSender.php @@ -1,10 +1,12 @@ From = "Admin@opensupports.com"; + $newMail->addAddress($mail); $newMail->Subject = "You Have Been register successfully";