#!/usr/bin/env php
Usage: email_unpaid_invoices_to_representatives.php (test|confirm) [delay]
Send an email to users to remind all unpaid customer invoices user is sale representative for.
If you choose 'test' mode, no emails are sent.
If you add a delay (nb of days), only invoice with due date < today + delay are included.