From 0cb78ffabee7aeabea5713d978666390e9489825 Mon Sep 17 00:00:00 2001 From: Velz2020 Date: Thu, 26 Dec 2019 20:11:28 +0530 Subject: [PATCH] SALES PD MAIL BCC ADDED --- api/application/helpers/pdalerts_helper.php | 30 ++++++++++++--------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/api/application/helpers/pdalerts_helper.php b/api/application/helpers/pdalerts_helper.php index 9a3de9d2..953441ca 100644 --- a/api/application/helpers/pdalerts_helper.php +++ b/api/application/helpers/pdalerts_helper.php @@ -204,17 +204,17 @@ class PDALERTS } /********************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); - } - } + // 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); + // } + // } /********************************************************/ @@ -523,9 +523,13 @@ class PDALERTS $mail->Password = "noreply@ssa"; // "The password" $mail->Port = 465; // "The port" $mail_id = 'ssa@venbainfotech.com'; - if(ENVIRONMENT == 'production'){ $mail_id = 'cpa@smcfinance.com'; } + if(ENVIRONMENT == 'production') + { + $mail_id = 'cpa@smcfinance.com'; + $mail->addBCC("neville@sinemanagement.com"); + } // Name is optional } $mail->addAddress($mail_id); - // $mail->addBCC("vitvelz@gmail.com", "Some BCC Name"); // Name is optional + $mail->From = 'noreply@pdgenie.com'; $fromName = 'PD Genie'; if(ENVIRONMENT == 'testing' || ENVIRONMENT == 'development') { $fromName .= ' ( TEST ENV ) '; } $mail->FromName = $fromName;