Pop 3 command line error

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Tinydan
Posts: 29
Joined: Wed Nov 06, 2013 2:09 pm

Pop 3 command line error

Post 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?
Tinydan
Posts: 29
Joined: Wed Nov 06, 2013 2:09 pm

Re: Pop 3 command line error

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

Re: Pop 3 command line error

Post by Klemen »

Glad to hear you got it working!
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
Post Reply