1. Home
  2. General info
  3. Debug send-campaigns command.

Debug send-campaigns command.

Starting with version 1.3.5, the cron job command that sends campaigns(send-campaigns) has been modified so that it will help debugging sending speed.
In order to make use of this functionality, you should have ssh access to your server so that you can run some commands in order to see the debug info directly in your ssh terminal.

First step is to disable the cron job that triggers the send-campaigns command, the one that runs each minute. This is very important, so please make sure you do it.

Once that cron job is disabled, it means we need to trigger campaigns sending manually from command line. In order to do this, if your cron job for send-campaigns looks like:

/usr/bin/php -q /var/www/html/apps/console/console.php send-campaigns >/dev/null 2>&1

Then you need to run the following command from command line:

/usr/bin/php -q /var/www/html/apps/console/console.php send-campaigns --verbose=1

Basically you just remove

>/dev/null 2>&1

and you add

--verbose=1

.
Once you run the above command in your ssh terminal, you will notice that mailwizz will start outputing information about what it is currently doing and the time it takes for each task.

Identify the task that takes longest time and you will find out what your sending problem is.

Once you know the problem and you have fixed it, you should enable the send-campaigns cron jobs so that sending campaigns resumes.

Was this article helpful?

Related Articles