![]() |
Cannot send auto email in codeigniter - 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: Cannot send auto email in codeigniter (/showthread.php?tid=70672) |
Cannot send auto email in codeigniter - sanjaya - 05-12-2018 Dear All, I have try to send a auto email if i have birth day in my list. But It not send auto that i mention time. Any one can help me to fix this auto email.. My controller: PHP Code: function test() My Model: PHP Code: function testmail() RE: Cannot send auto email in codeigniter - InsiteFX - 05-12-2018 You would need to get the users record from the database when a user login and get all records with today's date. If more then one record use a foreach loop to go through them all if the database records date = today's date then send the email. I think you would be better off using a cron job for this and call a CI Controller to do it all everyday. |