final mail - ps

This commit is contained in:
sanjeev 2021-12-27 13:42:10 +05:30
parent d3b4d93608
commit 5f625ec7e9

View File

@ -722,17 +722,17 @@ class PDALERTS
{
$mail = $CI->phpmailer_library->load();
$msg = "" ; $subject = "" ;
if($flag == 1){
// Allocated to Agency
$mail_id = $core_details[0]['agency_mail'];
if($flag == 2){
// Mail - RCM
$mail_id = $core_details[0]['allocated_email'];
$msg = "PD for Loan Application ID-".$core_details[0]['pd_sno']." (".$core_details[0]['lender_applicant_id'] ." ".$core_details[0]['applicant_name'].") have been triggered to the vendor. <br><br><br> This is an automatically generated notification mail. Please contact on vendor email id for any
queries/update. ";
$subject = "PD allocated to vendor for application ID - ".$core_details[0]['pd_sno'] ." & ". $core_details[0]['lender_applicant_id'] ." ".$core_details[0]['applicant_name'];
// $mail->addBCC("ps9064515@gmail.com");
}else if($flag == 2){
// Allocated by CM/RCM
}else if($flag == 1){
// mail - Agency
// $mail_id = "venbalap08@gmail.com";
$mail_id = $core_details[0]['allocated_email'];
$mail_id = $core_details[0]['agency_mail'];
$msg = "PD for Loan Application ID - ".$core_details[0]['pd_sno'] ." & ". $core_details[0]['lender_applicant_id'] ." ".$core_details[0]['applicant_name']." have been allocated to you. <br><br><br> This is an automatically generated notification mail. Please contact on client email id for any
queries/update. ";
$subject = "PD allocated for application ID - ".$core_details[0]['pd_sno'] ." & ". $core_details[0]['lender_applicant_id'] ." ".$core_details[0]['applicant_name'];
@ -762,8 +762,8 @@ class PDALERTS
$fromName = 'PD Genie';
$mail->addAddress($mail_id);
if(ENVIRONMENT == 'testing' || ENVIRONMENT == 'development') {
$fromName .= ' ( TEST ENV ) ';
$subject .= ' ( TEST ENV ) ';
$fromName .= ' ( TEST ENV- check ) ';
$subject .= ' ( TEST ENV- check ) ';
// $mail->addBCC("sanjeev.p@venbainfotech.com");
$mail->addBCC("ssa@venbainfotech.com");
// $mail->addBCC("venbalap08@gmail.com");