hat jemand auch das problem, dass man bei der CakeInternen Email Component irgendwie nicht das Template wechseln kann?
oder mach ich hier irgendwas falsch?
controller:
- Code: Alles auswählen
- $this->Email->to = '...@gmx.de';
$this->Email->replyTo = (!empty($from_email) ? $from_name.' <'.$from_email.'>' : 'noreply <...@gmx.de>');
$this->Email->from = (!empty($from_email) ? $from_name.' <'.$from_email.'>' : $from_name.' <...@gmx.de>');
$this->Email->subject = $subject;
$this->Email->template = 'contact';
$this->set('mail_header','Name: '.$from_name);
$this->set('mail_body',$message);
$this->set('mail_footer','UserAgent: '.env('HTTP_USER_AGENT').' | IP: '.env('REMOTE_ADDR'));
$this->Email->sendAs = 'both';
if ($this->Email->send()) {
$this->flashMessage('Thank you - I will try to answer your email as soon as possible','success');
}
und im views/layouts/email/ hab ich jeweils
ne contact.ctp in html und text
trotzdem nimmer er immer das default.ctp aus beiden ordnern
echt seltsam..

