dolibarr 21.0.0-alpha
email_expire_services_to_representatives.php File Reference

Script to send a mail to dolibarr users linked to companies with services to expire. More...

Go to the source code of this file.

Functions

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

Detailed Description

Script to send a mail to dolibarr users linked to companies with services to expire.

Definition in file email_expire_services_to_representatives.php.

Function Documentation

◆ sendEmailTo()

sendEmailTo ( $mode,
$oldemail,
$message,
$total,
$userlang,
$oldtarget,
$duration_value )

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
int$duration_valueDuration value
Returns
int Int <0 if KO, >0 if OK

Definition at line 196 of file email_expire_services_to_representatives.php.

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