Getting back recipients
This commit is contained in:
parent
96bf160198
commit
59c77fcf15
|
|
@ -1328,6 +1328,8 @@ function email_pdf_with_custom_recipients($id = null, $to = null, $cc = null, $b
|
||||||
} else {
|
} else {
|
||||||
// Pass as array - modified CakePHP EmailComponent now supports arrays for TO field
|
// Pass as array - modified CakePHP EmailComponent now supports arrays for TO field
|
||||||
$this->Email->to = $toArray;
|
$this->Email->to = $toArray;
|
||||||
|
// Set the To header for display purposes
|
||||||
|
$this->Email->headers['To'] = implode(', ', $toArray);
|
||||||
}
|
}
|
||||||
$ccArray = $this->parse_email_to_array($cc);
|
$ccArray = $this->parse_email_to_array($cc);
|
||||||
if (!empty($ccArray)) {
|
if (!empty($ccArray)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue