Send automatic mails using script

hi,

i am using script that i found with default installation to send mails to sales representative for contract about to expire. (email_expire_services_to_representatives.php)

the mails are being sent successfuly. i have configured scheduled task to run script everyday. i want that the script should send the mail reminder of contracts that are going to expire in coming 30 days.

presently it is sending all contract that a person is sales representative of, whether running, expired or closed.

1 Like