AdrianKLT
Thankyou for your reply - I have now setup OST to use O365 and the tokens and ID are all green and good, sending emails work, however I still cannot fetch emails and feel its the cron job I have totally goosed up, am running serverv 2019 - PHP 8.0 and the latest 1.72 of OST can someone help with what i actyally need to do in the cron job, I am a total newbie in php and webservers so this is a real hand holding exercise, I ahve searched so many articles but no joy - heres a copy of the cron job.
<?php
/*********************************************************************
cron.php
File to handle LOCAL cron job calls.
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
http://www.osticket.com
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
**********************************************************************/
@chdir(dirname(FILE).'/'); //Change dir.
require('api.inc.php');
if (!osTicket::is_cli())
die(__('cron.php only supports local cron calls - use http -> api/tasks/cron'));
require_once(INCLUDE_DIR.'api.cron.php');
LocalCronApiController::call();
crontab -e -u Administrator
*/2 * * * * php /var/www/html/api/cron.php > /dev/null 2>&1
?>