CHANGE: in lead mail send history data : GWM
This commit is contained in:
parent
4a3000c530
commit
6b7904f9e0
@ -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) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user