Page 1 of 1

testing imap fetching

Posted: Wed Mar 12, 2025 8:31 am
by Orazio
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hi,
I followed the procedure you suggest in order to setup imap fetching.
  • Tested IMAP server connection= OK;
  • Launched file hesk_imap.php?key=xxxxxxxxxxxx
I get a blank page with the following message: #!/usr/bin/php -q

What should I do at that point?

Regards
Orazio

Re: testing imap fetching

Posted: Wed Mar 12, 2025 8:46 am
by Klemen
Try turning "Debug mode" on in Admin > Settings > Help desk and run the test again. What does it say now?

Re: testing imap fetching

Posted: Wed Mar 12, 2025 9:40 am
by Orazio
this is the answer:

#!/usr/bin/php -q
Connected to the IMAP server "xxxxxxxxxxxxxxxxxxxxxxxxx".
No unread messages found.
Disconnected from the IMAP server.

Seems that everything is ok. The page which shows the message only appear when I exceute the script directly, should not be visible when the same is execeuted by a cron job. Am I correct?

Orazio

Re: testing imap fetching

Posted: Wed Mar 12, 2025 10:13 am
by Klemen
Correct, and for Cron job you should turn Debug mode OFF.

Re: testing imap fetching

Posted: Wed Mar 12, 2025 10:26 am
by Orazio
Perfect!
Thank you.
Orazio