CHANGE_MAIL_APPROVE_2 : AADHAVAN

This commit is contained in:
aadhavan valli 2024-07-10 10:58:26 +05:30
parent 76ad74f474
commit 3bf716c323

View File

@ -735,7 +735,7 @@ class MasterController extends BaseController
$documentUrl = base_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 ')
// ->join('business', 'branches.business_id = business.business_id', 'left')
// ->where('branches.branch_id',$this->session->get('logged_in_staff_branch_id'))
@ -748,7 +748,7 @@ class MasterController extends BaseController
// 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;
$mail_send = $MailHelper->send_url_email($clientData->email , $businessData->email, $subject, $message);
$MailHelper->send_url_email($clientData->email , '', $subject, $message);
$notificationHelper = new NotificationHelper();
$number = '91'.$clientData->mobile_no; // Replace with dynamic recipient number
if($clientData->whatsapp == 1){