Page 1 of 1

how to edit hesk_imap.php

Posted: Tue Nov 07, 2023 6:20 pm
by PierreM
at this point I'm completely lost, o php knowledge here :-(

Open hesk_imap.php file in your browser, for example:
https://yoursite.com/hesk/inc/mail/hesk_imap.php

If you have URL Access Key set in Admin panel > Settings > Help desk > Security > URL Access Key (which you should), you will need to append ?key=XXXXXXXXX to hesk_imap.php to access it via an URL address:

https://example.com/hesk/inc/mail/hesk_ ... =XXXXXXXXX


how do I make my hesk fetch the emails automatically ?
everything works as long as I use the "https://example.com/hesk/inc/mail/hesk_ ... XX"command in my browser, but it doesn't work by itself,
What do I need, or do I do wrong ??

Re: how to edit hesk_imap.php

Posted: Fri Nov 10, 2023 4:05 pm
by Klemen
To make that work automatically, you need to set up a cron (scheduled) job to run the hesk_imap.php script every 5 minutes (step 7 of the https://www.hesk.com/knowledgebase/?article=91 article).

How to set up a cron job - please check with your hosting company, it depends on the server software you use. This cannot be done from within Hesk.

Or, use a remote Cron service to do the job for you: http://www.google.com/search?hl=en&q=cron+service