Batch Mailer 02.12.08
I have a form mailer on my site that all my users use to send
out emails to other users. This script is in cgi.
The database is growing and emails are send all at once.
I have a script in php that, together with a cron-script
allow me to send out emails in batches.
The script add all the emails to a table and then the cron
sort out xx emails per xx time.
I will need the same sript that i have in php applied
to the cgi script.
There is no need to see the cron since I know how to work that out.
Attached is the php part of the script that insert the
records into the table. I will need to convert this to the cgi script
to make it work.
In addition I would like that users will have the possibility to
choose among a few choices like:
- send to upgraded members
- send to users without referrals
and 2 conditions:
- if the sender is upgraded can send once a week
- if the sender is NOT upgraded can send every 10 days
The script should prevent to send out more.