CHANGE_MAIL_APPROVE_2 : AADHAVAN
This commit is contained in:
parent
76ad74f474
commit
3bf716c323
@ -735,7 +735,7 @@ class MasterController extends BaseController
|
|||||||
$documentUrl = base_url();
|
$documentUrl = base_url();
|
||||||
// helper('url');
|
// helper('url');
|
||||||
|
|
||||||
$url ='<a href="' . generate_signed_url('preview', ['doc_id'=> md5($doc_id)], 36000) . '">Preview and Approve Document</a>';
|
$url ='<a href="' . generate_signed_url('preview', ['doc_id'=> md5((string)$doc_id)], 36000) . '">Preview and Approve Document</a>';
|
||||||
// $businessData = $this->BranchModel->select('branches.* , business.business_name ')
|
// $businessData = $this->BranchModel->select('branches.* , business.business_name ')
|
||||||
// ->join('business', 'branches.business_id = business.business_id', 'left')
|
// ->join('business', 'branches.business_id = business.business_id', 'left')
|
||||||
// ->where('branches.branch_id',$this->session->get('logged_in_staff_branch_id'))
|
// ->where('branches.branch_id',$this->session->get('logged_in_staff_branch_id'))
|
||||||
@ -748,7 +748,7 @@ class MasterController extends BaseController
|
|||||||
// print_r($businessData);die;
|
// print_r($businessData);die;
|
||||||
$message = "Dear " . $clientData->client_name . ",<br>" . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve.<br><br>" . $url;
|
$message = "Dear " . $clientData->client_name . ",<br>" . $businessData->business_name . " has requested your approval for a document. Please click the link below to preview and approve.<br><br>" . $url;
|
||||||
|
|
||||||
$mail_send = $MailHelper->send_url_email($clientData->email , $businessData->email, $subject, $message);
|
$MailHelper->send_url_email($clientData->email , '', $subject, $message);
|
||||||
$notificationHelper = new NotificationHelper();
|
$notificationHelper = new NotificationHelper();
|
||||||
$number = '91'.$clientData->mobile_no; // Replace with dynamic recipient number
|
$number = '91'.$clientData->mobile_no; // Replace with dynamic recipient number
|
||||||
if($clientData->whatsapp == 1){
|
if($clientData->whatsapp == 1){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user