@Ketan
My new send function looks now like that:
function _sendNewUserMail($id) {
$User = $this->User->read(null,$id);
$this->Email->to = '[EMAIL PROTECTED]';
$this->Email->bcc = array('[EMAIL PROTECTED]'); //
note
// this
could
be just a string too
$this->Email->subject = 'Welcome to our really cool
thing';
$this->Email->replyTo = '[EMAIL PROTECTED]';
$this->Email->from = '[EMAIL PROTECTED]';
$this->Email->template = 'activate'; // note no '.ctp'
//Send as 'html', 'text' or 'both' (default is 'text')
$this->Email->sendAs = 'both'; // because we like to send
pretty
mail
//Set view variables as normal
$this->set('User', $User);
//Do not pass any args to send()
$this->Email->delivery='debug';
$this->Email->send();
}
The emails aren't send any more, but I don't get any debug output. In
core.php, the debug level is set to 2.
What am I doing wrong? When I remove $this->Email->delivery='debug';
the emails are sent again. Where is the debug output. Also looked in
the html-sourcecode, to check if it's hidden somewhere. nope, it's
just not there.
Donnerbeil
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---