You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-09-13 21:30:12

williamsk
Member
Registered: 2012-09-12
Posts: 15

Receive mail automatically problem

Hi,

I have everything set up on the GLPI side to get the automatic actions set up to receive mail from receiver. I just don't understand how to set up the task on my windows computer to do this?

I found a document that said to add the following to task scheduler. But it did not work for me. Is there an extra step that I am missing?

c:/wampphpphp.exe c:/wamp/www/glpi/front/cron.php

Thanks!

Offline

#2 2012-09-14 16:23:48

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Receive mail automatically problem

I am assuming your install is on a Windows box?
Mine is on Linux, so I may be mistaken, but you will have to setup the cron task and then change your run mode to CLI for mailgate (automatic actions)


Thanks,
Dan

Offline

#3 2012-09-14 22:10:27

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

Yes, I'm running it on a windows box. I have already changed the run mode to CLI in the GLPI setup. So all I need to do is setup the cron.php file and then it should work?

Thanks!

Offline

#4 2012-09-14 22:23:01

cchiriboga
Member
Registered: 2012-09-14
Posts: 1

Re: Receive mail automatically problem

I'm using GLPI 0.83 and want to know how to do the inventory of cartridges and I can deposit all cartridges but as I get to leave downloading of inventory which is the option that I get new cartridges, I can enter the new used but not then download it as

Offline

#5 2012-09-16 15:18:11

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Receive mail automatically problem

@ cchiriboga :  please open a new thread.

@ williamsk : yes, I believe that is all you have to do.


Thanks,
Dan

Offline

#6 2012-11-19 18:46:38

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

Sorry to bring up an old post.. I had been working on this, then I took a break to work on other things, and now I am back to it.

Should I use the Scheduled task option in Windows 7, or do I need to set up an actual cron.php? If I do use the Scheduled Task option, what do I attach to trigger this so the mail receiver will update?

Thanks!

Offline

#7 2012-11-19 21:24:57

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

Ok, here is my configuration so far. I have GLPI installed on WAMP on Windows 7. I am using the scheduled tasks to run the cron task. But I don't know where to go from here.

Program/Script:

C:\wamp\bin\php\php5.3.13\php.exe

Add arguments (optional:

C:\wamp\www\glpi\front\cron.php

It says that the task ran successful. But I still do not receive ticket e-mails. I have already changed the run mode to CLI. Is there anything else that I am missing?

Last edited by williamsk (2012-11-20 00:17:40)

Offline

#8 2012-11-20 02:31:06

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Receive mail automatically problem

If you run the mailgate action manually, does it pull the mail?
If not, then the cron task part won't matter yet.


Thanks,
Dan

Offline

#9 2012-11-20 04:30:30

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

Yeah, if I manually pull the mail, it works great. But I just am not able to get it automated..

Offline

#10 2012-11-20 17:14:46

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

I'm not sure if this is a glpi problem, or if my php isn't working correctly. I am using Wamp.

Offline

#11 2012-11-21 00:36:08

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

I have spent the ENTIRE day trying to figure this out.. I have concluded that I am not inputting the cron.php and php.exe correctly in the windows task scheduler. I have tried putting it in every way I could think of, and still nothing. sad

Offline

#12 2012-11-21 23:14:16

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

Does anyone have an example of what they have used in Windows Task Scheduler? I feel like maybe I am getting close. I tried putting the "(path)/php.exe (path)/cron.php" in the program to start like most of the docs have it, but it won't work. Thanks!

Offline

#13 2012-11-26 23:30:16

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

Ok, I am to the point where I give up on trying to find this. I have worked 3+ days trying to get this to work.... I have tried every combination I know of to get the mail to automatically receive.

These are the settings I have been using in the task scheduler:

Program/Script:
C:\wamp\bin\php\php5.4.3\php.exe

Add arguments (optional): c:\wamp\www\glpi\front\cron.php

Start in (optional): Blank

When I run the task, it shows running, but everytime I refresh it it goes back to ready. Nothing pops up and runs either. The Administrator user that I am using has full Administrative rights, so I don't know what to do anymore.. Am I using the right files?

Offline

#14 2012-11-27 01:55:41

shahriza.khairudin
Member
Registered: 2012-11-14
Posts: 9

Re: Receive mail automatically problem

hi william,

im facing the same issue, receiver works well if i do manually (button click) but not automated.

the confusing part is there's no error thrown..

Offline

#15 2012-11-27 06:28:04

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

shahriza.khairudin wrote:

hi william,

im facing the same issue, receiver works well if i do manually (button click) but not automated.

the confusing part is there's no error thrown..

Yeah, thats exactly my problem as well. The task says it runs successfully after I refresh the task schedule.. Because it hangs up saying "Running", but its not.. I have ran into this with other situations and the problem has always been that something wasn't typed in the actions right.. So I'm not sure if it has something to do with me using Wamp or if I am typing something wrong.

What environment are you running on? Linux or Windows?

Offline

#16 2012-11-27 09:01:19

shahriza.khairudin
Member
Registered: 2012-11-14
Posts: 9

Re: Receive mail automatically problem

im using windows.

Offline

#17 2012-11-27 16:06:40

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

shahriza.khairudin wrote:

im using windows.

Me too. I am using Windows 7...

Offline

#18 2012-11-28 21:36:34

williamsk
Member
Registered: 2012-09-12
Posts: 15

Re: Receive mail automatically problem

So what if I just type in the following for the URL:

http://IPADDRESS/glpi/front/crontask.php?execute=mailgate

What would happen if I just let that page run? When I have that page up, it continuously runs and the e-mail tickets are received fine.. If I have to keep this page running to get the mail to automatically come in, then I can..

Offline

#19 2013-05-07 16:43:31

v.todorov
Member
Registered: 2013-04-30
Posts: 22

Re: Receive mail automatically problem

I am resurrecting this topic. I am facing the same issue and cannot figure if it is a windows 7 misconfiguration or if I am setting the scheduled task incorrectly.

I opened a topic a while ago but still no outcome
http://www.glpi-project.org/forum/viewt … p?id=32484

has anyone found a solution?

Offline

Board footer

Powered by FluxBB