(Guillermo) Add-email-sender-class 2
This commit is contained in:
parent
fad653ed7b
commit
94743f58ee
|
@ -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');
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue