hello,
information:
i try to setup auto cron that fetching emails is working when i am logged out. (now its only fetching emails when admin login)
Server Information
osTicket Version v1.15.2 (cb6766e) — Up to date
Web Server Software Apache
MySQL Version 5.7.32
PHP Version 7.3.28
emails- > settings >
Email fetching : ON enable ON Fetch on auto cron
manage - > api
api is active and ip from server is ok
file on server:
api/cron.php (or see attached file).
`<?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();
?>
`
i found lot of forums but all give different ANSWER'S and not succesfully
i think i have to update the file cron.php with the api code ?
or what do i need to update in this file or where in this file ?
or what do i need to change ?
thankyou ivo
![
](https://)