diff --git a/taskExecuter.php b/taskExecuter.php index e94045e..aa0ffe0 100644 --- a/taskExecuter.php +++ b/taskExecuter.php @@ -121,10 +121,10 @@ while($latesEndTime - time() > 60){ else { convertcsvToXlsx(str_replace(".json", ".csv", $downloadDir.'/'.$taskfiles[0]), str_replace(".json", ".xlsx", $downloadDir.'/'.$taskfiles[0])); unlink(str_replace(".json", ".csv", $downloadDir.'/'.$taskfiles[0])); - sendEmail($task['email'], str_replace(".json", ".xlsx", $downloadDir.'/'.$taskfiles[0]), $smtppassword); unlink($taskDir.'/'.$taskfiles[0]); echo "Task File deleted"; echo "
"; + sendEmail($task['email'], str_replace(".json", ".xlsx", $downloadDir.'/'.$taskfiles[0]), $smtppassword); } } else { // acutal Time - start time