(Guillermo) Add-email-sender-class 2

This commit is contained in:
AntonyAntonio 2016-07-04 15:47:28 -03:00
parent fad653ed7b
commit 94743f58ee
2 changed files with 4 additions and 2 deletions

View File

@ -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');

View File

@ -1,10 +1,12 @@
<?php
class EmailSender {
public function validRegister($mail) {
public static function validRegister($mail) {
$newMail = new PHPMailer;
$mail->From = "Admin@opensupports.com";
$newMail->addAddress($mail);
$newMail->Subject = "You Have Been register successfully";