Page 1 of 1

Pop 3 command line error

Posted: Wed Nov 06, 2013 2:20 pm
by Tinydan
Script URL: c:\intepub\wwwroot\IT helpdesk\inc\mail\hesk_pop3.php
Version of script: hesk 2.5.2
Hosting company: in house
URL of phpinfo.php: C:\PHP
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Pop3, temporary directory

Write your message below:

I'm currently trying to get pop 3 working on our system. It works when running the php script in a browser, emails that have been sent to our pop 3 account get entered into our hesk database. The script doesn't work when being run from the command line which I'm trying to use to prove the script works without a browser. I'm trying to make a windows scheduled task in order to run the script every five minutes. The command I'm using is:

php "C:\inetpub\wwwroot\IT Helpdesk\inc\mail\hesk_pop3.php"

And the error that is being returned is:

´╗┐The temporary directory "C:\inetpub\wwwroot\IT Helpdesk/attachments/733c6e971
de7371aa7aac4c87f6bcce1" doesn't exist.

Am I running the wrong command? How would your normally get the script to run via a scheduled task on windows.

Also is there a way to specify the category the pop3 tickets go into and the account they get assigned to?

Re: Pop 3 command line error

Posted: Wed Nov 06, 2013 4:52 pm
by Tinydan
I found the issue. It was the permissions on the file. They were not set to allow modifications to the file so it meant that the command couldn't create the temporary files it needed. All sorted now! I'm able run the command in a .bat file through a scheduled task.

Re: Pop 3 command line error

Posted: Fri Nov 08, 2013 9:25 pm
by Klemen
Glad to hear you got it working!