Example #1
0
 function send_mail_process()
 {
     $identity = $this->session->flashdata('mail_info');
     $get_status = send_mail_simple($identity->email, 'Your Keppo Account Login Info', 'First Name:' . $identity->first_name . '<br/>Last Name:' . $identity->last_name . '<br/>username:' . $identity->username . '<br/>Email:' . $identity->email . '<br/>Password:' . $identity->password_visible, 'forgot_password_send_email_success');
     if ($get_status) {
         set_simple_message('Thank you!', 'An email will be sent to your registered email address.', "If you don't receive in the next 10 minutes, please check your spam folder and if you still haven't received it please try again...", 'user/login', 'Go to Log In Page', 'all/simple_message');
     } else {
         $this->session->set_flashdata('message', $this->ion_auth->errors());
         redirect("user/retrieve-password", 'refresh');
     }
 }
Example #2
0
 function send_redeem_mail_process()
 {
     $mail_info = $this->session->flashdata('mail_info');
     $mail_voucher_code = $mail_info['redeem_info']['redeem_voucher_not_need'] == 0 ? 'Voucher Code : ' . $mail_info['redeem_info']['redeem_voucher'] . ' ("Snap" and show this voucher code)<br/>' : NULL;
     $mail_expire_code = $mail_info['redeem_info']['redeem_expire'] == NULL ? NULL : 'Expire Date : ' . $mail_info['redeem_info']['redeem_expire'];
     $mail_top_up_phone = $mail_info['redeem_info']['redeem_top_up_phone'] == NULL ? NULL : 'Top Up Phone : ' . $mail_info['redeem_info']['redeem_top_up_phone'] . '<br/>';
     $mail_message = 'Merchant : ' . $mail_info['redeem_info']['redeem_merchant'] . '<br/>' . 'Promotion Title : ' . $mail_info['redeem_info']['redeem_title'] . '<br/>' . $mail_voucher_code . $mail_top_up_phone . $mail_expire_code . '<br/><br/>' . $mail_info['message'] . '<br/>Congrats : You have earn another ' . $this->m_custom->display_trans_config(9) . ' candies and RM' . $this->m_custom->display_trans_config(24) . '<br/>';
     $get_status = send_mail_simple($mail_info['email'], $mail_info['redeem_info']['redeem_email_subject'], $mail_message, 'keppo_redeem_send_email_success');
     if ($get_status) {
         set_simple_message('Thank you!', 'Please check your e-mail (Inbox/Junk) or keppo.my redemption "active". <br/><br/>Please present this voucher before you purchase.<br/><br/>Enjoy your gift from merchants & Keppo.my.', $mail_message, $mail_info['return_url'], 'Back', 'all/simple_message');
     } else {
         $this->session->set_flashdata('message', $mail_info['message']);
         redirect($mail_info['return_url'], 'refresh');
     }
 }