Jump to content

Recommended Posts

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 by jazzman1
Link to comment
https://forums.phpfreaks.com/topic/269453-swiftmailer-and-send-mass-emails/
Share on other sites

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).

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.