-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf Of
genellern
Sent: Friday, February 19, 2010 1:03 PM
To: CakePHP
Subject: problem with email component
Hi.
i got a unknown trouble with my app.
im trying to set a mail sender but i dont know why it does not send
any email, if some
Hi.
i got a unknown trouble with my app.
im trying to set a mail sender but i dont know why it does not send
any email, if somebody could help me i'ld really be thankful
i put my code below
function sendEmail(){
$this->Email->reset();
$this->log(__CLASS__.
Hello LunarDraco, devils advocate here.
Exactly how much faster would all that be compared to requestAction()?
Unless you see some serious performance gain why bother? (it is only
one cron request every hour? every 5 min?)
On Feb 18, 4:04 pm, LunarDraco wrote:
> > If you use 1.2.1 stable it s
> If you use 1.2.1 stable it should work as expected without any extra
> calls.
For me, I'm using the email component from the console shell. The
console shell doesn't load up hardly anything automagically, so in my
case it is required to make the call.
This shell is then in turn called by a cron
This is related to ticket #5904 (https://trac.cakephp.org/ticket/
5904).
If you use 1.2.1 stable it should work as expected without any extra
calls.
On Jan 8, 6:08 pm, Brenda wrote:
> H... I don't have any $controller to change to $this->controller.
> I tried adding the code for startup, an
I ran into the same problem. The change that was made was in version
7969
The startup function mention by brian was replaced in the email.php
with initialize so that it could be used easier by other components.
My code that used this and got the same error used to look like:
$this->ProfileControl
H... I don't have any $controller to change to $this->controller.
I tried adding the code for startup, and that didn't seem to make a
difference. I'm not really clear on what that would do?
I've tracked this down a little bit more, and it seems the problem is
with the email elements. I set th
Your component needs to get a handle on the controller. Add this:
function startup(&$controller) {
$this->controller = $controller;
}
.. and change any $controller to $this->controller
Another couple of things worth mentioning: I'm not sure when this
change happened, but I recently ran
I just upgraded from RC3 to 1.2 final, and I'm getting errors when
sending email.
I have my own component:
class MyEmailComponent extends Object {
var $components = array ('Email');
function sendEmail($to,$subject=null) {
// The calling controller must first set