#!/usr/bin/env php Usage: email_unpaid_invoices_to_customers.php (test|confirm) (thirdparties|contacts) [delay] [after] Send an email to customers to remind all unpaid customer invoices. If you choose 'test' mode, no emails are sent. If you add param delay (nb of days), only invoice with due date < today + delay are included. If you add param after (nb of days), only invoice with due date >= today + delay are included.