Jump to content

Recommended Posts

Hi,

 

I'm working on a mailing program that will hopefully send mails out to around 100,000 people. I've got search queries that get all the email addresses from my DB and fills a temporary table with the results. I then want a user to be able to press "send" on their email that'll create a CRON job which will go down the populated list and send all the mails, flagging each one as done as it happens.

 

The reason i want the CRON is so the user can turn their computer off and the CRON will just get on with it. Can anyone tell me how i might go about creating this CRON from php? Or if there's a better way i'm not thinking of.

 

many thanks

Link to comment
https://forums.phpfreaks.com/topic/51297-solved-create-a-cron-job-with-php/
Share on other sites

We have a dedicated server with cpanel. Setting up a cron isn't the problem i can do that it was more that i wanted to automatically create a cron for each email job that was on. I think though i'll have a master cron that'll run one file that'll just look for a job every 10 mins or so, if it finds one it can run it. That sounds a lot easier i think

 

Thanks for your replies

 

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.