Fixed bug where bcc was visible to all recipients when using smtp

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7766 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
TommyO 2008-10-20 17:09:42 +00:00
parent 2350000be0
commit f5a8ce4612

View file

@ -456,7 +456,7 @@ class EmailComponent extends Object{
$this->__header[] = 'cc: ' .implode(', ', array_map(array($this, '__formatAddress'), $this->cc)); $this->__header[] = 'cc: ' .implode(', ', array_map(array($this, '__formatAddress'), $this->cc));
} }
if (!empty($this->bcc)) { if (!empty($this->bcc) && $this->delivery != 'smtp') {
$this->__header[] = 'Bcc: ' .implode(', ', array_map(array($this, '__formatAddress'), $this->bcc)); $this->__header[] = 'Bcc: ' .implode(', ', array_map(array($this, '__formatAddress'), $this->bcc));
} }
if ($this->delivery == 'smtp') { if ($this->delivery == 'smtp') {