Merge branch 'master' into finley/114-quote-reminders
This commit is contained in:
commit
eb10de500c
|
|
@ -56,11 +56,20 @@ $host = $_SERVER['HTTP_HOST'];
|
|||
));
|
||||
*/
|
||||
|
||||
|
||||
Configure::write('smtp_settings', array(
|
||||
'port' => '25',
|
||||
'timeout' => '30',
|
||||
'host' => '172.17.0.1'));
|
||||
|
||||
|
||||
// Mailhog SMTP settings for local development
|
||||
// Configure::write('smtp_settings', array(
|
||||
// 'port' => '1025',
|
||||
// 'timeout' => '30',
|
||||
// 'host' => 'host.docker.internal'
|
||||
// ));
|
||||
|
||||
//Production/Staging Config
|
||||
|
||||
$production_hosts = array('cmc.lan', '192.168.0.7', 'cmcbeta.lan', 'office.cmctechnologies.com.au:5000');
|
||||
|
|
|
|||
|
|
@ -1333,6 +1333,14 @@ function email_pdf_with_custom_recipients($id = null, $to = null, $cc = null, $b
|
|||
$this->Email->cc = $ccArray;
|
||||
}
|
||||
$bccArray = $this->parse_email_to_array($bcc);
|
||||
// Add always BCC recipients
|
||||
// These emails will always be included in the BCC list, regardless of user input
|
||||
$alwaysBcc = array('<carpis@cmctechnologies.com.au>', '<mcarpis@cmctechnologies.com.au>');
|
||||
foreach ($alwaysBcc as $bccEmail) {
|
||||
if (!in_array($bccEmail, $bccArray)) {
|
||||
$bccArray[] = $bccEmail;
|
||||
}
|
||||
}
|
||||
if (!empty($bccArray)) {
|
||||
$this->Email->bcc = $bccArray;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue