CHANGE: in lead mail send history data : GWM

This commit is contained in:
Gowtham M 2025-08-28 18:24:04 +05:30
parent 4a3000c530
commit 6b7904f9e0

View File

@ -2552,6 +2552,17 @@ class LeadsController extends BaseController
$from_mail = "bs@nhanceindia.in";
}
$type = "";
if (in_array($recipient_type, ['placement'])) {
$type = "placement";
} else if (in_array($recipient_type, ['insurer'])) {
$type = "insurer";
}else if (in_array($recipient_type, ['internal'])) {
$type = "internal";
}else if (in_array($recipient_type, ['client'])) {
$type = "client";
}
if ($recipient_type === 'placement') {
$lead_data = $this->leadsModel->find($lead_id);
@ -2746,7 +2757,7 @@ class LeadsController extends BaseController
}
// print_r($subject); die;
$common = ['module' => "leads", 'pk' =>$lead_id];
$common = ['module' => "leads", 'pk' => $lead_id, 'mail_type' => $type];
if ($recipient_data) {
foreach ($recipient_data as $recipient) {