Jump to content

Swiftmailer And Send Mass Emails


jazzman1

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!

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.