PDA

View Full Version : emails per hour ?



siguie
08-16-2006, 03:09 AM
Is there a way to see how many emails have been sent in the last hour?

If there were a way to do this in perl or php it would make things much easier and I could write a little script that runs from a cron tab each hour that sends out just under the max number of messages.:)

aurora
08-16-2006, 07:58 AM
DADA mail can be used to queue mail.
There is a free version and a professional version
http://mojo.skazat.com/

DaHiA
08-16-2006, 08:20 AM
dada mail is not allowed to run over 5 minutes [300 seconds]
and by any how or mean,you can't send more than [500] emails per hour per plan

i fed up with this killing process issue :(
any idea how to work around?

Smoothice
08-16-2006, 09:52 AM
dada mail is not allowed to run over 5 minutes [300 seconds]
and by any how or mean,you can't send more than [500] emails per hour per plan

i fed up with this killing process issue :(
any idea how to work around?

Do you know php programming at all? If so you can do as I have done and create your own newsletter mailing program that uses your current userlist to send off of. It is actually not that difficult using a program called phpmailer.

All you do is create a newletter mailer php file that will do the emailing. Again not that though and if you need examples I can probably forward you a dumbed down copy of mine. Then you use a cron job(you can set these up in your control panel, again I can send you the code for this as well if you are not sure.) You set the cron job to run once per minute the newsletter php file and that file will email 7 newsletters out. Now that works out to be 420 newsletters per hour.

This will still allow for 80 emails to be sent from your message boards. If the 80 is not enough then you can set the newletter script to run 6 newsletters per minute.

My boards have close to 1400 users and I had the same problems as you. I just took them into my own hands.

If you need further help let me know.

Smoothice

DaHiA
08-16-2006, 10:11 AM
we'd be glad to help us with the dumped copy and the cron job if possible
Thanks a bunch in advance:)

Smoothice
08-16-2006, 01:28 PM
Before I send over the copies of the scripts, do you know PHP as you will need to modify them and the sql to do what you want them to do.

Smoothice

siguie
08-17-2006, 03:03 AM
I'm not asking for something that just puts emails in a queue and sends out 50 an hour :rolleyes: I'm asking if there was a way to know how many emails have been sent from everything on my site ... forums, scripts, email accounts etc. Apparently there is a counter somewhere if sites can send out only 50 messages an hour and I was hoping there was an easy way to access that count

Smoothice
08-17-2006, 10:27 AM
I'm not asking for something that just puts emails in a queue and sends out 50 an hour :rolleyes: I'm asking if there was a way to know how many emails have been sent from everything on my site ... forums, scripts, email accounts etc. Apparently there is a counter somewhere if sites can send out only 50 messages an hour and I was hoping there was an easy way to access that count


Have you called support for this answer? There obviously is a system variable that is holding this information for each account on the box. Should just be a matter of getting ahold of that variable and calling it in your php script.

Smoothice

siguie
08-18-2006, 03:20 AM
Nope not yet, I try not to bug support until I've checked around first. Also yeah I figured it was a system call of some kind but it seems like it would be extremely useful and should be posted someplace but maybe not.

Anyways, I was thinking about rewriting phpBBs email system to write to a flat file. Then write a seperate script that checks how many emails have been sent that hour and sends just under the max. Most forum emails are low priority so I thought this would be a nice way to space out the messages.

DaHiA
08-18-2006, 09:49 PM
Before I send over the copies of the scripts, do you know PHP as you will need to modify them and the sql to do what you want them to do.
well,maybe i can't create php but i can modify and adapt script for personal use
don't worry and thanks in advance :)

Smoothice
08-18-2006, 11:00 PM
I am just re-witing the whole thing tonight to adapt to a new site I am launch hopefully tomorrow. So I will do all the tweeking on it first then let you have way with it. I will give some pointers later as to how to integrate it with phpbb as well if needed.

Smoothice