prod #123
|
|
@ -1325,10 +1325,12 @@ function email_pdf_with_custom_recipients($id = null, $to = null, $cc = null, $b
|
|||
$msg = 'Invalid recipient email address.';
|
||||
echo json_encode(array('success' => false, 'message' => $msg));
|
||||
return;
|
||||
} else {
|
||||
// Pass as array - modified CakePHP EmailComponent now supports arrays for TO field
|
||||
$this->Email->to = $toArray;
|
||||
}
|
||||
} else {
|
||||
// Pass as array - modified CakePHP EmailComponent now supports arrays for TO field
|
||||
$this->Email->to = $toArray;
|
||||
// Set the To header for display purposes
|
||||
$this->Email->headers['To'] = implode(', ', $toArray);
|
||||
}
|
||||
$ccArray = $this->parse_email_to_array($cc);
|
||||
if (!empty($ccArray)) {
|
||||
$this->Email->cc = $ccArray;
|
||||
|
|
|
|||
Loading…
Reference in a new issue