Ejemplo n.º 1
0
 public static function contact_us($htmlMessage)
 {
     $htmlMessage = str_replace(":content", $htmlMessage, file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . '/template/contact_us.html'));
     return EmailUtil::send(array("*****@*****.**" => "Sunil"), "Contact Me", $htmlMessage);
 }
Ejemplo n.º 2
0
 public static function contact_us($htmlMessage)
 {
     $htmlMessage = $htmlMessage;
     return EmailUtil::send(array("*****@*****.**" => "Sunil"), "Contact Me", $htmlMessage);
 }
Ejemplo n.º 3
0
Archivo: User.php Proyecto: sks40gb/jnv
 public function sendActivationCode()
 {
     $email = $_POST["email"];
     $model = new \SKS\MODEL\UserModel();
     $code = $model->getActivationCode($email);
     if ($code == null) {
         $this->view->error = "Invalid Email : " . $email;
     } else {
         $htmlMessage = LINK_RESET_PASSWORD . $code;
         $sent = \EmailUtil::send(array($email => $email), "JNV | Reset your password", $htmlMessage);
         //\EmailUtil::contact_us(array($email=>$email), "JNV | Reset your password",$htmlMessage);
         if ($sent) {
             $this->view->message = "Reset email has been sent. Please check your email.";
         } else {
             $this->view->error = "Error encountered while sending activation code";
         }
     }
     $this->view->render('login/include/reset_password', false);
 }