In short, you have to do the following three steps:
1. Extract the ZIP file
After you have extracted phpbatchmail-x.x.zip file, you will find a folder called phpbatchmail with the following files:
mail_queue - folder where actual mails are queued. This folder contains the file called dummy, this file can be deleted since it is here only because ZIP archives can not have empty folders.
phpbatchmail.lib.php – php source code file where function batch_mail is defined. This function takes the same parameters as PHP's function mail, and it should be called instad of later one.
mail_next.php – PHP script that actually sends queued mails. It should be executed by cron as often as you like.
propeties.ini – configuration file necessary for mail_next.php script. It defines the maximum number of queued mails that are going to be sent in each script run.
2. Include phpbatchmail.lib.php in your source code and call batch_mail instead of mail
3. Set up cron to run mail_next.php as frequent as you want
Instructions for this step are different on each hosting environment. If you don’t know how to set up scheduler to run the script in regular intervals, the best would be to ask your hosting provider for help.
That should be it!

2 comments on "Installation instructions"
Hello,
I bought your script, but I do not understand how to use it in my script.
There is an example to use batch_mail ?
Thank you for your assistance.
Mick
Mick's question was originally answered via e-mail which is quoted here later.
1. include 'phpbatchmail.lib.php' in your script
2. instead of calling ordinary 'mail' function, you call 'batch_mail' instead
'batch_mail' has the same parameters as 'mail'. In case you are not familiar
with 'mail' function, you can check it here:
http://php.net/manual/en/function.mail.php
Feel free to ask if you have any further questions.
Post a Comment