SMTP works, IMAP doesn't create ticket

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
fallout
Posts: 6
Joined: Fri Sep 08, 2023 7:37 pm

SMTP works, IMAP doesn't create ticket

Post 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?
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: SMTP works, IMAP doesn't create ticket

Post by Klemen »

Did you do all the steps required?

See here, probably missing steps 5 and on:
https://www.hesk.com/knowledgebase/?article=91
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
fallout
Posts: 6
Joined: Fri Sep 08, 2023 7:37 pm

Re: SMTP works, IMAP doesn't create ticket

Post 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?
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: SMTP works, IMAP doesn't create ticket

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
fallout
Posts: 6
Joined: Fri Sep 08, 2023 7:37 pm

Re: SMTP works, IMAP doesn't create ticket

Post by fallout »

Thanks for the info. So the "Task Timeout" doesn't set up the call? What is this setting for?
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: SMTP works, IMAP doesn't create ticket

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
fallout
Posts: 6
Joined: Fri Sep 08, 2023 7:37 pm

Re: SMTP works, IMAP doesn't create ticket

Post by fallout »

Thank you, I was able to get this working through a scheduled task.
Post Reply