Our cron is setup correctly - however I am not sure our parameters for the job mail_report are.

instanceId=[82] format=[print]

Also, do I have to create a separate job for each report or can I create one job for all reports? Lets say I just want an HTML print out embedded in the body of the email for all reports in which there is an email setup.

2 Answers 2


The format is


No brackets. The format parameter value can also be print for printer-friendly HTML. If no format is specified it will send as PDF.

If you are doing this in the UI, you have to setup a separate job for each report. That is useful, because you may want some reports mailing at a different frequency.


The last time I did this, which was a while ago, I didn't do anything with the job in the admin screens in civi, I just set up a cron job and gave it the parameters there, e.g.

php bin/cli.php -u cms_user_name -e Job -a mail_report --instanceId=82 --format=csv

So for multiple reports just add more similar lines in your cron script.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.