Jump to content

cron job question


gardan06

Recommended Posts

i was opting to use cron job as someone told me its the best way to send email subscriptions to users automatically. my scenario is that users can opt to choose between daily and weekly subscription, both self-explanatory.

i was thinking of making 7 cron jobs, one for each day, to cope up with both the daily and the weekly subscriptions(the weekly ones being the users who registered that day). is making 7 cron jobs practical?
Link to comment
Share on other sites

Why not make 1 cron job and let a "switchboard" script do the rest? 

Example:
Create a script to check the day and if it's the day the weekly emails are sent, send to both "weekly" and "daily" subscribers.  If it's not the day weekly emails are sent, only send to daily subscribers.

This way you only need a Cron that runs daily.

Hope this makes sense.

Dest
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.