Example #1
0
 public static function sendDefault($obj)
 {
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, "traceID" => "sendDefault");
     $emailObj;
     //----------------------------------------------------------
     GenFun::errorKey_CHK($obj, array("emailTo", "message"));
     //----------------------------------------------------------
     $message = '<div style = "padding:20px; width:500px; background-color:#999999; font-family: arial; font-size:12px; color: #FFFFFF;">';
     $message .= $obj['message'] . ' <br><br>';
     //----------------------------------------------------------
     if (!is_null($obj['link'])) {
         $message .= '<a href = "' . $obj['link'] . '">' . $obj['linkTxt'] . '</a>';
     }
     //----------------------------------------------------------
     $message .= '</div>';
     $message = GenFun::html($message);
     $emailObj = array("emailTo" => $obj['emailTo'], "nameFrom" => GlobalMas::$name, "emailFrom" => GlobalMas::$email, "message" => $message, "subject" => $obj['subject']);
     //----------------------------------------------------------
     $chk = $chk["bool"] ? SendEmail_v0::go($emailObj) : $chk;
     //----------------------------------------------------------
     return $chk;
 }
Example #2
0
 public function emailForgotLink($linkHash)
 {
     Trace::output($this->traceID, "emailForgotLink");
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, "traceID" => "emailForgotLink");
     $emailObj;
     //----------------------------------------------------------
     $message = '<div style = "padding:20px; width:500px; background-color:#999999; height:160px;font-family: arial; font-size:12px; color: #FFFFFF;">';
     $message .= 'Forgot password? Click link below to create a new one: <br><br>';
     $message .= '<a href = "' . $this->forgot_url . '?hash=' . $linkHash . '">Create new password</a></div>';
     $message = GenFun::html($message);
     $emailObj = array("emailTo" => $this->email, "nameFrom" => Constants::NAME, "emailFrom" => Constants::EMAIL, "message" => $message, "subject" => "account registration");
     //----------------------------------------------------------
     $chk = $chk["bool"] ? SendEmail_v0::go($emailObj) : $chk;
     //----------------------------------------------------------
     return $chk;
 }
Example #3
0
 private function sendConfirmation($email, $categoryID, $linkHash, $type)
 {
     Trace::output($this->traceID, "sendConfirmation");
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, "traceID" => "sendConfirmation");
     $emailObj;
     $typeofs = $type == 0 ? 'terminate your subscription' : 'subscribe';
     //----------------------------------------------------------
     $message = '<div style = "padding:20px; width:500px; background-color:#999999; height:160px;font-family: arial; font-size:12px; color: #FFFFFF;">';
     $message .= 'This message was sent with the intention of verifiying your request to ' . $typeofs . ' to the following list: <br><br>';
     $message .= '<b>"' . strtoupper($this->categoryName) . '"</b><br><br> To confirm, please click the link below: <br><br>';
     $message .= '<a href = "http://awwthentic.com/Modules/DOM/examples/form/form_v2/confirmation.php?hash=' . $linkHash . '">click here to complete process</a></div>';
     $message = GenFun::html($message);
     $emailObj = array("emailTo" => $email, "nameFrom" => GlobalMas::NAME, "emailFrom" => GlobalMas::EMAIL, "message" => $message, "subject" => "mailinglist registration");
     //----------------------------------------------------------
     $chk = $chk["bool"] ? SendEmail_v0::go($emailObj) : $chk;
     //----------------------------------------------------------
     if ($chk["bool"]) {
         return $chk;
     }
 }
Example #4
0
 public function inviteConfirmationLink($email, $hash)
 {
     Trace::output($this->traceID, "inviteConfirmationLink");
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, "traceID" => "inviteConfirmationLink");
     $emailObj;
     //----------------------------------------------------------
     $message = '<div style = "padding:20px; width:500px; background-color:#999999; line-height:17px; height:100px;font-family: arial; font-size:15px; color: #FFFFFF;">';
     $message .= 'You have been invited by <a href = "http://www.awwthentic.com/Modules/DOM/examples/sites/pmbl/confirmation.php">"' . GlobalMas::$loggedIN['first'] . ' ' . GlobalMas::$loggedIN['last'] . '"</a> to participate in a <br> ' . $this->eventObj['name'] . ' tournament on ' . $this->eventObj['dateWritten'] . ' for a grand prize of $' . number_format($this->eventObj['prize']) . '<br><br>';
     $message .= '<a href = "http://www.awwthentic.com/Modules/DOM/examples/sites/pmbl/event_invite.php?hash=' . $hash . '">Click Here to accept invite</a></div>';
     $message = GenFun::html($message);
     $emailObj = array("emailTo" => $email, "nameFrom" => GlobalMas::NAME, "emailFrom" => GlobalMas::EMAIL, "message" => $message, "subject" => "account registration");
     //----------------------------------------------------------
     $chk = $chk["bool"] ? SendEmail_v0::go($emailObj) : $chk;
     //----------------------------------------------------------
     return $chk;
 }