PDA

View Full Version : Email fetching without cronjob???


Baukereg
01-29-2008, 09:00 AM
osTicket works really well, but we're having trouble getting the email fetching working. Right now, we need to install a cronjob, but we don't have quick access to our server, and our plesk doesn't support cronjob either. Is there a way to use email fetching without cronjob, for example each time I enter the admin ticket page?

edit: I just discovered that a windows server is not supporting cronjobs. What's the best sollution?

4ice
01-29-2008, 09:11 AM
osTicket works really well, but we're having trouble getting the email fetching working. Right now, we need to install a cronjob, but we don't have quick access to our server, and our plesk doesn't support cronjob either. Is there a way to use email fetching without cronjob, for example each time I enter the admin ticket page?

edit: I just discovered that a windows server is not supporting cronjobs. What's the best sollution?

There are two methods for this. You can use the POP3 fetch function on staff's activity or the email piping method. See also the Wiki pages for more info.

Baukereg
01-29-2008, 09:32 AM
I've turned on 'Enable cron call on staff's activity' and 'Enable POP3 email fetch' in the settings. Yet, I doubt if a connection with the email server is created. Is there a way to check if it is tried on activity? Emails are still not fetched, and I'm sure the POP3 data is right.

Ebonhand
01-29-2008, 09:53 AM
There are externally-available websites that basically run scripts on your server on your behalf, calling them via the web

I found http://www.remote-cron.com/ as one example, and if that doesn't do the (cron)job, a quick Google of your own (http://www.google.com/search?q=remote+cron) will pay off

Kind regards,
Ebonhand

Baukereg
01-29-2008, 10:12 AM
Thanx for the help, I'll consider using a remote cron.

Still, I'd like to know how I can check if a cronjob is performed on staff's activity.

4ice
01-30-2008, 09:56 AM
I've turned on 'Enable cron call on staff's activity' and 'Enable POP3 email fetch' in the settings. Yet, I doubt if a connection with the email server is created. Is there a way to check if it is tried on activity? Emails are still not fetched, and I'm sure the POP3 data is right.

When you save your POP3 information in the Admin Panel, the system should make a connection to your server. If that fails, it will show an error. So your info should be right indeed.

To check whether the cron job is called you can add
echo "CRON CALLED";
exit;
to the file autocron.php. If you then go to the Admin Panel and see this message you know it's called.

If you want to look deeper, try to look at the Cron::POP3(); function. This is where the magic happens :)