Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Mass emailing and chron job

Mass emailing and chron job
Thread Tools
Mac Enthusiast
Join Date: Jul 2000
Location: Dubai, UAE
Status: Offline
Reply With Quote
Oct 19, 2004, 03:39 PM
 
A client needs to send about 5000 emails to users of their product for an update notice. The local ISP limits them as far as outgoing email. A safe limit is about 30 emails/hour. The addresses are in a FileMaker database.

What is the best way to have some sort of cron job that only allows 25 or so to be sent at once and does this every hour. Granted it will still take days to do this, but I see no other way. The customers are receiveing updated license keys and rather than use postal mail, email is much cheaper.

Thanks,

Trygve
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Oct 19, 2004, 04:23 PM
 
Interesting problem. My first reaction would be to say, "Time to get a new ISP and/or talk to the ISP admins and work out a deal at least temporarily."

This is going to take on the order of 200 hours (about 8days and 8 hours) to send all the emails at the rate of 25/hr.

One way to do it would be to "send" all the emails using sendmail BUT put them all in a hold loop. Then use an hourly cronjob that will use 'postsuper' to pop 25 emails out of the hold loop. See 'man postsuper' for more info.

Another way would be to export the list of email addys from FileMaker to a flat text file, one address per line. Then have an hourly cronjob pop 25 addresses off of the list and send a standard format email to each one of the recipients in the sublist, then delete the addresses just popped from the main list... later-rinse-repeat.

Yet another way would be to just send all the emails and not worry about it. Let the ISP handle the queueing. Might be a good idea to talk to the ISP to find out how they handle such things. They may just hold 5000-30 emails in a queue and pop 30 emails out per hour... or they may just drop all but the first 30.
(Last edited by utidjian; Oct 19, 2004 at 04:28 PM. )
-DU-...etc...
     
Trygve  (op)
Mac Enthusiast
Join Date: Jul 2000
Location: Dubai, UAE
Status: Offline
Reply With Quote
Oct 20, 2004, 02:48 AM
 
How can I write a small AppleScript, turn it into an Application and set it up as a chron job?

I have the compiled script, but How do I set it to run every hour?


Thanks,

Trygve
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:54 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2