Welcome Guest, Not a member yet? Register   Sign In
Sending eMails with CronJob
#6

(This post was last modified: 01-14-2019, 04:47 PM by VK4JE. Edit Reason: more info )

(01-14-2019, 08:04 AM)php_rocs Wrote: @VK4JE,

SUGGESIONS:
1.  Instead of creating multiple functions to handle 7,5,3,1 days until expiration why not just a single function that does it all.  The function would be able to determine numbers of days until expiration and if the number of days left is either 7,5,3,1 then send an email.
2. Instead of loading your models multiple times in the functions why not declare the most common models once in the __construct function.  This will keep you from repeating the same code.
Hi php_rocs,
Thank you for your reply and suggestions,
The scripts that I am working with were 'built' by a developer that I purchased them from. 
The script that I zipped up for you is the Developers Solution. 
So I am trying to work with what I have, good or bad.

To be honest you solution and approach sounds clean and simple, I just do not know how to do it.

My main issue is that the users are not being emailed as their membership moves towards expiry.

Regards
Ron
Cheers
Ron
Reply


Messages In This Thread
Sending eMails with CronJob - by VK4JE - 01-10-2019, 11:52 PM
RE: Sending eMails with CronJob - by php_rocs - 01-11-2019, 06:18 AM
RE: Sending eMails with CronJob - by VK4JE - 01-12-2019, 05:53 PM
RE: Sending eMails with CronJob - by php_rocs - 01-14-2019, 07:56 AM
RE: Sending eMails with CronJob - by php_rocs - 01-14-2019, 08:04 AM
RE: Sending eMails with CronJob - by VK4JE - 01-14-2019, 03:13 PM
RE: Sending eMails with CronJob - by php_rocs - 01-14-2019, 08:00 PM
RE: Sending eMails with CronJob - by VK4JE - 01-14-2019, 11:32 PM
RE: Sending eMails with CronJob - by VK4JE - 01-16-2019, 01:25 PM
RE: Sending eMails with CronJob - by php_rocs - 01-16-2019, 09:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB