Page 1 of 1

SMTP works, IMAP doesn't create ticket

Posted: Fri Sep 08, 2023 7:47 pm
by fallout
HESK version
3.4.3
HESK is up to date
HESK license
FREE
Buy a License
PHP version
7.4.33 (MySQLi)
MySQL version
8.0.31

I'm running this on a Windows box using ampps and have Hesk up and running. I'm running against an issue with IMAP and ticket creation though. I have created and register the app in o365 and when I test IMAP in Hesk it connects using the OAuth provider. I can send messages out with SMTP using the OAuth provider, but no tickets come in if I email the specific inbox. Any ideas on how to resolve this?

Re: SMTP works, IMAP doesn't create ticket

Posted: Fri Sep 08, 2023 7:58 pm
by Klemen
Did you do all the steps required?

See here, probably missing steps 5 and on:
https://www.hesk.com/knowledgebase/?article=91

Re: SMTP works, IMAP doesn't create ticket

Posted: Fri Sep 08, 2023 8:03 pm
by fallout
I did, but I just did it again and started to receive the ticket replies. Should I only need to do this once?

Re: SMTP works, IMAP doesn't create ticket

Posted: Fri Sep 08, 2023 8:11 pm
by Klemen
See step 7
To automatically convert emails to tickets you will need to setup a CRON job (scheduled task) to run the hesk_imap.php script for example every 5 minutes. Most hosting companies support CRON jobs, please check your hosting control panel or contact your host.

Re: SMTP works, IMAP doesn't create ticket

Posted: Fri Sep 08, 2023 8:16 pm
by fallout
Thanks for the info. So the "Task Timeout" doesn't set up the call? What is this setting for?

Re: SMTP works, IMAP doesn't create ticket

Posted: Sat Sep 09, 2023 7:16 am
by Klemen
Sometimes the calls (script execution) take a lot of time because the connection hangs, emails have large attachemnts etc. The timeout setting instructs Hesk how long to wait if an existing connection is in progress until attempting a new connection.

Re: SMTP works, IMAP doesn't create ticket

Posted: Sat Sep 09, 2023 10:38 pm
by fallout
Thank you, I was able to get this working through a scheduled task.