CodeIgniter Forums
Send e-mail automatic (with specific date) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Send e-mail automatic (with specific date) (/thread-31181.html)



Send e-mail automatic (with specific date) - El Forum - 06-09-2010

[eluser]Zied[/eluser]
How to create web application (or function, technology) to send newsletter automatic with specific date, I don’t like that users will be present to send it.
I don't know with each technology we can did it.
In Codeigniter, I can found something can help me ?


Send e-mail automatic (with specific date) - El Forum - 06-09-2010

[eluser]n0xie[/eluser]
Create a cron-job


Send e-mail automatic (with specific date) - El Forum - 06-09-2010

[eluser]CloppiWeb[/eluser]
Codeigniter, as well many other frameworks have the functionality for email sending. So you need to find a way to call codeigniter method/function with cron.

So, basically you make a cron scheduled task, make the cron to call some method/function in your application which loads the application and does the email sending.

Its quite far from simple if you have not yet used to use cron and some framework so you need to do some reading. Croning in ci is little unknown for me ass well but here are some links to find more information:

http://codeigniter.com/wiki/Category:Advanced::CronScript/
http://net.tutsplus.com/tutorials/other/scheduling-tasks-with-cron-jobs/
http://ellislab.com/codeigniter/user-guide/libraries/email.html

I think I will learn more about croning in ci Big Grin


Send e-mail automatic (with specific date) - El Forum - 06-09-2010

[eluser]Zied[/eluser]
Think you for this informations, I will try.