CodeIgniter Forums
how to schedule sent email in my codeigniter project - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: how to schedule sent email in my codeigniter project (/showthread.php?tid=64214)



how to schedule sent email in my codeigniter project - mdsir - 01-27-2016

Any library or built-in facility in codeigniter. Please give me a best solution.


RE: how to schedule sent email in my codeigniter project - Bhavesh - 01-27-2016

Hi
Please write cron job for send email.
I don't think that any library available for scheduler in CI.
If any one know please share.
Thanks


RE: how to schedule sent email in my codeigniter project - mdsir - 01-27-2016

(01-27-2016, 10:22 PM)Bhavesh Wrote: Hi
Please write cron job for send email.
I don't think that any library available for scheduler in CI.
If any one know please share.
Thanks

How to write cron job in codeigniter ? Could you give me guide line or sample code.


RE: how to schedule sent email in my codeigniter project - keulu - 01-28-2016

see that dude Wink

http://www.codeigniter.com/user_guide/general/cli.html

all is explained Smile


RE: how to schedule sent email in my codeigniter project - josepostiga - 01-28-2016

I don't know anything specific to CodeIgniter. However, I can point you to this awesome PHP cron parser: http://mtdowling.com/blog/2012/06/03/cron-expressions-in-php/


RE: how to schedule sent email in my codeigniter project - cartalot - 01-28-2016

the easiest way to do cron -- is if your hosting company has a tool for it.
like if you are using cpanel, the cron tool is very easy to use.


RE: how to schedule sent email in my codeigniter project - mdsir - 01-30-2016

(01-28-2016, 06:07 PM)cartalotthe Wrote: easiest way to do cron -- is if your hosting company has a tool for it.
like if you are using cpanel, the cron tool is very easy to use.

How to use in my application and how to execute cli with PHP code


RE: how to schedule sent email in my codeigniter project - skunkbad - 01-30-2016

(01-30-2016, 10:25 AM)mdsir Wrote:
(01-28-2016, 06:07 PM)cartalotthe Wrote: easiest way to do cron -- is if your hosting company has a tool for it.
like if you are using cpanel, the cron tool is very easy to use.

How to use in my application and how to execute cli with PHP code

A cron job is a server configuration that tells the server to run a task at certain times.

From the terminal, you access the place to create cron jobs by typing "crontab -e".

Many tutorials exist for creating cron jobs, but in general the job is scheduled by choosing a time for it to run, and providing a command to run. CodeIgniter makes running cron jobs easy, because of the CLI mentioned above.

So, you just create the functionality you want in a controller, and then point your cron job at it.


RE: how to schedule sent email in my codeigniter project - Nash - 02-02-2016

(01-28-2016, 06:07 PM)cartalot Wrote: the easiest way to do cron -- is if your hosting company has a tool for it.
like if you are using cpanel, the cron tool is very easy to use.

Webcron (like easycron.com) is another way to use cron job, It's quite reliable with log and email notification feature.