diff --git a/mail-cron.php b/mail-cron.php new file mode 100644 index 0000000..f8a77c4 --- /dev/null +++ b/mail-cron.php @@ -0,0 +1,30 @@ + 0){ + while($row = mysqli_fetch_array($result)){ + mail('J.vos@ictmaatwerk.com','Sample Form',$msg,); + echo "Mail succesfully sent."; + } + mysqli_free_result($result); + } else{ + echo "No tickets were found."; + } + } else{ + echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); + } +?> \ No newline at end of file