FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Hourly script
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Hourly script [message #173306 is a reply to message #173304] Sat, 02 April 2011 22:18 Go to previous messageGo to previous message
Mr. B-o-B is currently offline  Mr. B-o-B
Messages: 42
Registered: April 2011
Karma:
Member
On 4/2/2011 3:37 PM, P E Schoen cried from the depths of the abyss:
> "Question Boy" wrote in message
> news:bc56da6b-df1c-4a56-9789-78fd24c0268d(at)s9g2000yqm(dot)googlegroups(dot)com...
>
>> I built a mailing tool for a custom database for a charity
>> organisation and it does work, but our host has a limit of
>> 200 e-mails an hour. As it stands, someone has to manually
>> send out 200 e-mails every hour until the whole lot is processed
>> (2800 recipients and growing). I was simply wondering if there
>> is a way to modify/add a bit of code to process the entire
>> recordset in batches of 200 records per hour?
>
> The other responses are probably all you need. The CRON job seems to
> require access to the UNIX environment, and I'm not sure how that might
> be done if you are working from a Windows platform. There are many ways
> to do this, but the best way may depend on just how your script is
> written. I am assuming it is PHP and is running on either a remote host
> or your localhost Apache server or equivalent.

You will need shell access to run a cron locally on the host. If that
is not an option, you can use a cron on another *nix box to hit a script
that will send 200 messages.
lynx -dump /webserver/script.php is a good one.

This can also be done from a remote windows box as well using scheduled
tasks.

I myself would just program the email script to send 200 messages / wait
for the duration of the hour, repeat until all messages are sent.



>
> Since I am using a Win7 machine, which may go to sleep or shut down once
> in a while, it would make better sense to run whatever scheduling
> application on the remote server.

So why not tell your 7 box to never go to sleep?

> And in that case, of course, the
> address list and the content would need to be there as well, probably in
> a MySQL or similar database. I found the following that may help:
> http://www.phpjobscheduler.co.uk/
>
> Otherwise, there may be some free email servers that permit mass
> mailings, and if not, there are some that seem to be inexpensive. Here
> are some reviews:
> http://email.about.com/od/freeemailreviews/tp/free_email.htm
>
> Paul

Do a google search for "unlimited smtp access". Find a cheap one, and
be done with it.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Firefox PHP error report
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 17:03:06 GMT 2024

Total time taken to generate the page: 0.04828 seconds