I just want to add that the mentioned lines are

if (!empty($this->cc)) {
$headers['cc'] = implode(', ', array_map(array($this, '_formatAddress'), 
$this->cc));
}

if (!empty($this->bcc) && $this->delivery != 'smtp') {
$headers['Bcc'] = implode(', ', array_map(array($this, '_formatAddress'), 
$this->bcc));
}

Did I use the wrong a wrong format?

Am Mittwoch, 12. September 2012 13:35:50 UTC+2 schrieb heohni:
>
> Hi,
>
> I just discovered a problem when trying to send an email with V.1.3. 
> It was working quite well in the past, I just found the error by chance:
>
> I get these errors:
>
> *Warning* (2): array_map() [http://php.net/function.array-map]: Argument #2 
> should be an array [*COREcake/libs/controller/components/email.php*, line 
> *583*]
>
> *Warning* (2): implode() [http://php.net/function.implode]: Invalid arguments 
> passed [*COREcake/libs/controller/components/email.php*, line *583*]
>
> *Warning* (2): array_map() [http://php.net/function.array-map]: Argument #2 
> should be an array [*COREcake/libs/controller/components/email.php*, line 
> *587*]
>
> *Warning* (2): implode() [http://php.net/function.implode]: Invalid arguments 
> passed [*COREcake/libs/controller/components/email.php*, line *587*]
>
> I have loaded the 'Email' Component in my app_controller.php
> and use it this way in my Controller
>
> $this->Email->to = 'xxx';
> $this->Email->cc = 'xxx';
> $this->Email->bcc = 'xxx';
> $this->Email->subject = $this->data['Contact']['name'];
> $this->Email->from = $this->data['Contact']['email'];
> $this->Email->send($this->data['Contact']['comments'])
>
> I just wonder as it was working before...
> But I have no idea since what time it's bringing up the above error 
> messages.
>
> What can I do now?
> How to find and solve this error?
>
> Please help!!
>
> Thanks!!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to