private function AddMailFromField()
 {
     $name = 'MailFrom';
     $field = Input::Text($name, $this->register->GetMailFrom());
     $this->AddField($field);
     $this->SetRequired($name);
     $this->AddValidator($name, PhpFilter::EMail());
 }
Ejemplo n.º 2
0
 private function SendConfirmMail()
 {
     $mailer = new \PHPMailer(true);
     $mailer->From = $this->register->GetMailFrom();
     $mailer->Subject = $this->register->GetMailSubject();
     $mailer->addAddress($this->Value('EMail'));
     $mailer->msgHTML($this->GetConfirmMessage());
     $mailer->send();
 }