jazzman1 Posted October 14, 2012 Share Posted October 14, 2012 (edited) Hey guys, I wrote a script that send emails to our subscribers from church about 920. I also want this emails to be send by packages, where every 10 sec to be send 10 emails, for this issue I'm using sleep php function.. and cron job from the server. Where is the problem? When I ran the script from my local machine I've got 90 packages, if I run the script from the remote server (we're using godaddy shared server), I've got only 61 packages. There are the links to the scripts... cron. php -> http://pastebin.com/wXRs1Adt array's mails -> http://pastebin.com/vDdPd5mN Any help would be appreciated! Edited October 14, 2012 by jazzman1 Quote Link to comment https://forums.phpfreaks.com/topic/269453-swiftmailer-and-send-mass-emails/ Share on other sites More sharing options...
kicken Posted October 15, 2012 Share Posted October 15, 2012 Godaddy only allows scripts to run for a short length of time before they forcefully kill it. You'll either need to split the job up into several short-running cron jobs, or find a different provider that allows longer jobs to be run (or use a mailer service rather than DIY'ing it). Quote Link to comment https://forums.phpfreaks.com/topic/269453-swiftmailer-and-send-mass-emails/#findComment-1385208 Share on other sites More sharing options...
jazzman1 Posted October 15, 2012 Author Share Posted October 15, 2012 (edited) You'll either need to split the job up into several short-running cron jobs..... I'm really going to think about that Thanks Edited October 15, 2012 by jazzman1 Quote Link to comment https://forums.phpfreaks.com/topic/269453-swiftmailer-and-send-mass-emails/#findComment-1385221 Share on other sites More sharing options...
jazzman1 Posted October 15, 2012 Author Share Posted October 15, 2012 Yep, the maximum length of time to run the script is 425 seconds.. After that the script goes down.. :-\ Quote Link to comment https://forums.phpfreaks.com/topic/269453-swiftmailer-and-send-mass-emails/#findComment-1385229 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.