The script should allow users to disable the email sends if desired. check that MAIL_TO is empty or not. If its empty, dont send an email