On Dec 22, 12:01 pm, heohni <[email protected]> wrote: > Hi, > > when I send an email I get this 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] > > if ($this->RequestHandler->isPost()) { > > $this->Contact->set($this->data); > if ($this->Contact->validates()) { > //$this->Email->delivery = 'debug'; > $this->Email->to = '[email protected]'; > $this->Email->cc = '[email protected]'; > $this->Email->bcc = '[email protected]'; > $this->Email->subject = __('Anfrage (o-o.de) von: > ', true) . $this->data['Contact']['name']; > $this->Email->from = $this->data['Contact'] > ['email']; > > if($this->Email->send($this->data['Contact'] > ['comments'])){ > $this->set('thankyou', true); > } > } > } > > The strange thing is, that 'thankyou' gets set, but no email ever > arrives? > What do I do with the error messages?
read them? > What do they mean? They mean you aren't using the email component as designed - just look at the lines that are triggering the errors: https://github.com/cakephp/cakephp/blob/1.3/cake/libs/controller/components/email.php#L581 The code expects an array and you're setting the property to a string. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
