SALES PD MAIL BCC ADDED
This commit is contained in:
parent
12786deb28
commit
0cb78ffabe
@ -204,17 +204,17 @@ class PDALERTS
|
|||||||
}
|
}
|
||||||
|
|
||||||
/********************CUSTOM MAIL NOTIFICATION***********************/
|
/********************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(($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')
|
// if(ENVIRONMENT == 'production')
|
||||||
{
|
// {
|
||||||
self::sendMail($CI,'sinepd@sinemanagement.com',$msg,$core_details);
|
// self::sendMail($CI,'sinepd@sinemanagement.com',$msg,$core_details);
|
||||||
}
|
// }
|
||||||
else if(ENVIRONMENT == 'testing')
|
// else if(ENVIRONMENT == 'testing')
|
||||||
{
|
// {
|
||||||
self::sendMail($CI,'ssa@venbainfotech.com',$msg,$core_details);
|
// self::sendMail($CI,'ssa@venbainfotech.com',$msg,$core_details);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
/********************************************************/
|
/********************************************************/
|
||||||
|
|
||||||
@ -523,9 +523,13 @@ class PDALERTS
|
|||||||
$mail->Password = "noreply@ssa"; // "The password"
|
$mail->Password = "noreply@ssa"; // "The password"
|
||||||
$mail->Port = 465; // "The port"
|
$mail->Port = 465; // "The port"
|
||||||
$mail_id = 'ssa@venbainfotech.com';
|
$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->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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user