CUSTOM PD NOTIFICATIONS

This commit is contained in:
Velz2020 2019-12-26 18:35:47 +05:30
parent 02312c2139
commit 4b6edd3cb6

View File

@ -159,7 +159,7 @@ class PDALERTS
/*********************************************/ /*********************************************/
/*******Send Mail Notification to Lender*****/ // currently Mail disabled /*******Send Mail Notification to Lender*****/ //
/*********************************************/ /*********************************************/
if($pd_notification_configs[0]['mail_lender'] == 1 && $is_mail_enabled) if($pd_notification_configs[0]['mail_lender'] == 1 && $is_mail_enabled)
{ {
@ -190,10 +190,10 @@ class PDALERTS
if($financial_institude_email != null) if($financial_institude_email != null)
{ {
self::sendMail($CI,$financial_institude_email,$msg,$core_details); self::sendMail($CI,$financial_institude_email,$msg,$core_details);
self::sendMail($CI,'velmurugan.s@venbainfotech.com',$msg,$core_details); //self::sendMail($CI,'velmurugan.s@venbainfotech.com',$msg,$core_details);
if(ENVIRONMENT == 'testing') if(ENVIRONMENT == 'testing')
{ {
self::sendMail($CI,'vitvelz@gmail.com',$msg,$core_details); //self::sendMail($CI,'vitvelz@gmail.com',$msg,$core_details);
} }
} }
@ -202,8 +202,21 @@ class PDALERTS
self::sendMail($CI,'sinepd@sinemanagement.com',$msg,$core_details); self::sendMail($CI,'sinepd@sinemanagement.com',$msg,$core_details);
} }
// echo 'afer len mail';
// die(); /********************CUSTOM MAIL NOTIFICATION***********************/
if(($core_details[0]['pd_status'] == 'TRIGGERED') && ($core_details[0]['short_name'] == 'IIB' || $core_details[0]['short_name'] == 'UDAAN' || $core_details[0]['short_name'] == 'IMGC'))
{
if(ENVIRONMENT == 'production')
{
self::sendMail($CI,'sinepd@sinemanagement.com',$msg,$core_details);
}
else if(ENVIRONMENT == 'testing')
{
self::sendMail($CI,'ssa@venbainfotech.com',$msg,$core_details);
}
}
/********************************************************/
/*********************************************/ /*********************************************/
@ -509,8 +522,10 @@ class PDALERTS
$mail->Username = "noreply@ssa.sineedge.com"; // "The account" $mail->Username = "noreply@ssa.sineedge.com"; // "The account"
$mail->Password = "noreply@ssa"; // "The password" $mail->Password = "noreply@ssa"; // "The password"
$mail->Port = 465; // "The port" $mail->Port = 465; // "The port"
$mail->addAddress('vishant@sinemanagement.com'); $mail_id = 'ssa@venbainfotech.com';
$mail->addBCC("vitvelz@gmail.com", "Some BCC Name"); // Name is optional if(ENVIRONMENT == 'production'){ $mail_id = 'cpa@smcfinance.com'}
$mail->addAddress($mail_id);
// $mail->addBCC("vitvelz@gmail.com", "Some BCC Name"); // Name is optional
$mail->From = 'noreply@pdgenie.com'; $mail->From = 'noreply@pdgenie.com';
$fromName = 'PD Genie'; if(ENVIRONMENT == 'testing' || ENVIRONMENT == 'development') { $fromName .= ' ( TEST ENV ) '; } $fromName = 'PD Genie'; if(ENVIRONMENT == 'testing' || ENVIRONMENT == 'development') { $fromName .= ' ( TEST ENV ) '; }
$mail->FromName = $fromName; $mail->FromName = $fromName;