function dapatKomisiTingTong($email, $commision_value, $isPending, $client_username, $isAgent) { $text = ''; if (!$isAgent) { $text = "Please complete your Agent registration <a href='" . _BPATH . "marketer'>here</a>."; } $pendingText = ''; if ($isPending) { $pendingText = "To complete the pair, please deal paid Apps"; } $emailModel = new EmailModel(); $emailModel->getByID("dapatKomisiTingTong"); return $emailModel->sendEmail($email, array("commision_value" => $commision_value, "is_Agent" => $text, "is_Pending_Free" => $pendingText, "link_more_sales" => _BPATH . "link_more_sales")); }
public function sendReceiptEmail() { if (Efiwebsetting::getData('checkOAuth') == 'yes') { IMBAuth::checkOAuth(); } $email = addslashes($_GET['email']); $user_id = addslashes($_GET['user_id']); if ($email == "") { $user = new UserModel(); $user->getByID($user_id); $email = $user->email; } $order_id = isset($_GET['id_order']) ? addslashes($_GET['id_order']) : die("Please fill order id"); $receipt = "<table>"; $orderDetails = $this->getReceiptDetail(1); pr($orderDetails['Order Details']); foreach ($orderDetails['Order Details'] as $detail) { $receipt .= "<tr>\n <td>" . $detail['name_dish'] . "</td>\n <td>" . $detail['quantity'] . "</td>\n</tr>"; } $receipt .= "</table>"; $emailModel = new EmailModel(); $emailModel->getByID("receiptOrder"); // pr($emailModel); echo $emailModel->sendEmail($email, array("resto_name" => $order_id, "receipt" => $receipt)); die; }
function forgotPasswordClosedAcc($email, $uname, $link, $app) { $emailModel = new EmailModel(); $emailModel->getByID("forgotPasswordClosedAcc"); return $emailModel->sendEmail($email, array("email" => $email, "uname" => $uname, "link" => $link, "app_name" => $app->app_name)); }