phplist is an excellent open source software that we use to send the newsletter to our subscribers. Processing the queue however from frontend is difficult when you have 6000+ subscribers. Here is how to setup a commandline for phplist on Bluehost.
- Create a phplist script and save it.
#!/bin/bash /usr/bin/php-cli /home/yourhomedir/path_to_phplist/admin/index.php -c /home/yourhomedir/path_to_phplist/config/config.php $*
Set the permission to 755 so you can execute it. Now you can process your queue from command line by running
phplist -pprocessqueue
Save this file to your
/home/yourhomedir/bin
2. Setup Cron to process your queue periodically
Second step would be to let cron automatically process the queue for you. Provide the full path of the script to cron. In Bluehost Cpanel, you have an option to set cron so you don’t have to access the terminal.
/home/yourhomedir/bin/phplist -pprocessqueue
if you wish you can set the Manual process queue to 0 in your config.php file to disable the process queue from the front end
("MANUALLY_PROCESS_QUEUE",1)