dolibarr 21.0.0-alpha
email_unpaid_invoices_to_representatives.php File Reference

Script to send a mail to dolibarr users linked to companies with unpaid invoices. More...

Go to the source code of this file.

Functions

 envoi_mail ($mode, $oldemail, $message, $total, $userlang, $oldtarget)
 Send email.
 

Detailed Description

Script to send a mail to dolibarr users linked to companies with unpaid invoices.

Definition in file email_unpaid_invoices_to_representatives.php.

Function Documentation

◆ envoi_mail()

envoi_mail ( $mode,
$oldemail,
$message,
$total,
$userlang,
$oldtarget )

Send email.

Parameters
string$modeMode (test | confirm)
string$oldemailTarget email
string$messageMessage to send
string$totalTotal amount of unpayed invoices
string$userlangCode lang to use for email output.
string$oldtargetTarget name of sale representative
Returns
int Int <0 if KO, >0 if OK

Definition at line 203 of file email_unpaid_invoices_to_representatives.php.

References dol_syslog(), dol_textishtml(), getDolGlobalString(), and price().