Announcement

Collapse
No announcement yet.

PHP Mailer batch processing script

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PHP Mailer batch processing script

    Hi,

    I'm setting up PHP Mailer.

    I set, at least i think i did it the right way in the config.php file for 1 message to be sent every 60 seconds which should total to 60 emails per hour.

    Here is what i did:
    # define the amount of emails you want to send per period. If 0, batch processing
    # is disabled and messages are sent out as fast as possible
    define("MAILQUEUE_BATCH_SIZE",1);

    # define the length of one batch processing period, in seconds (3600 is an hour)
    define("MAILQUEUE_BATCH_PERIOD",60);

    ................

    Now i started the queue and it says that "14301 messages will be sent per hour" Why does it say this when it should only be 60 messages per hour. Am i missing something...what do i need to edit in the config file?

    Started
    Sending in batches of 1 emails
    Processing has started, 1 message(s) to process.
    Please leave this window open. You have batch processing enabled, so it will reload several times to send the messages. Reports will be sent by email to mailer@lifelinehosting.net
    Processing message 7
    Looking for users
    Found them: 148 to process
    batch limit reached: 1 (1)
    Script stage: 5
    1 messages sent in 0.25 seconds (14301 msgs/hr)
    Finished this run
    Waiting for 60 seconds before reloading





















































    -------------------
    commission de surendettement en france
Working...
X