Re: Can i send email through mysql/cakephp when the users are offline?

2010-11-04 Thread cricket
On Thu, Nov 4, 2010 at 4:31 PM, Michael T  wrote:
> It sounds like he wants a scheduler to be able to execute some
> arbitrary thing (send an email) at a particular time.
>
> As a fellow Cake newbie, I myself have been wondering whether this is
> possible. With a web application server like Tomcat, you could just
> have an extra thread which runs the scheduler and executes code in new
> threads at whatever time. But my guess is that since we're running
> Apache for Cake, we don't have that extra kind of capability? Cron
> jobs are probably the only way to go about it?

Have a look here:
http://book.cakephp.org/view/1106/The-CakePHP-Console

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Can i send email through mysql/cakephp when the users are offline?

2010-11-04 Thread Michael T
It sounds like he wants a scheduler to be able to execute some
arbitrary thing (send an email) at a particular time.

As a fellow Cake newbie, I myself have been wondering whether this is
possible. With a web application server like Tomcat, you could just
have an extra thread which runs the scheduler and executes code in new
threads at whatever time. But my guess is that since we're running
Apache for Cake, we don't have that extra kind of capability? Cron
jobs are probably the only way to go about it?

On Nov 4, 5:58 pm, cricket  wrote:
> On Wed, Nov 3, 2010 at 11:52 PM, Jerin K Alexander
>
>  wrote:
> > No, i need not detect the offline users. in this ,i am creating an
> > event (with some conditions)and it set to a particular time . It will
> > execute at that particular time when the conditions are true at that
> > time. Means it will an insertion,or deletion, whatever may be.. so at
> > that particular time may be their is no users at online(may be). So i
> > need to send a mail to administrator about this. so please help..
>
> You could create a cron job.
>
> But you still seem to be saying that you want to test whether there
> are any users online. And, if there was an insert/delete, wouldn't
> that suggest that at least one user was online?
>
> Maybe it would help if you explained further about what you are trying
> to achieve.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Can i send email through mysql/cakephp when the users are offline?

2010-11-03 Thread cricket
On Wed, Nov 3, 2010 at 11:52 PM, Jerin K Alexander
 wrote:
> No, i need not detect the offline users. in this ,i am creating an
> event (with some conditions)and it set to a particular time . It will
> execute at that particular time when the conditions are true at that
> time. Means it will an insertion,or deletion, whatever may be.. so at
> that particular time may be their is no users at online(may be). So i
> need to send a mail to administrator about this. so please help..

You could create a cron job.

But you still seem to be saying that you want to test whether there
are any users online. And, if there was an insert/delete, wouldn't
that suggest that at least one user was online?

Maybe it would help if you explained further about what you are trying
to achieve.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Can i send email through mysql/cakephp when the users are offline?

2010-11-03 Thread Jerin K Alexander
No, i need not detect the offline users. in this ,i am creating an
event (with some conditions)and it set to a particular time . It will
execute at that particular time when the conditions are true at that
time. Means it will an insertion,or deletion, whatever may be.. so at
that particular time may be their is no users at online(may be). So i
need to send a mail to administrator about this. so please help..

On Nov 3, 10:58 pm, Miles J  wrote:
> No there isn't such functionality.
>
> Furthermore, how are you detecting an "offline" user?
>
> On Nov 2, 9:03 pm, Jerin K Alexander 
> wrote:
>
>
>
>
>
>
>
> > My objective is tosenda mail when the users are offline. It depends
> > on a particular row or value inserted in the table. if such an option
> > provide by cake or mysql,please help me..

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Can i send email through mysql/cakephp when the users are offline?

2010-11-03 Thread Miles J
No there isn't such functionality.

Furthermore, how are you detecting an "offline" user?

On Nov 2, 9:03 pm, Jerin K Alexander 
wrote:
> My objective is to send a mail when the users are offline. It depends
> on a particular row or value inserted in the table. if such an option
> provide by cake or mysql,please help me..

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Can i send email through mysql/cakephp when the users are offline?

2010-11-02 Thread Jerin K Alexander
My objective is to send a mail when the users are offline. It depends
on a particular row or value inserted in the table. if such an option
provide by cake or mysql,please help me..

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en