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-05-31 16:28:09

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

New Ticket by Email

I am needing to know if we can create a new ticket by sending an email to GLPI.

Offline

#2 2012-05-31 17:32:31

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: New Ticket by Email

Yes, you need to configure a email collector (in Setup menu)


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2012-06-01 18:28:14

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

I do not see where to configure an email collector in the Setup menu.  This is all I see:

  • Dropdowns
    Components
    Notifications
    SLAs
    General
    Checks
    Automatic Actions
    Authentication
    Receivers
    OC SNG mode
    External Links
    Plugins

Offline

#4 2012-06-01 18:40:37

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: New Ticket by Email

=> Receivers


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#5 2012-06-01 21:24:29

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

Ok...I setup the email address.  I sent a test email to it to create a ticket, but don't see anything in the "New Tickets" section.  What am I doing wrong?

Offline

#6 2012-06-02 07:29:11

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: New Ticket by Email

You need to wait for the mail to be collected.

- manually : you have a "collect now" button on the receiver form
- automatic : see the "Automatic Actions"


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#7 2012-06-04 08:17:28

samhancke
Member
Registered: 2012-02-13
Posts: 18

Re: New Ticket by Email

pinnergy75633 wrote:

Ok...I setup the email address.  I sent a test email to it to create a ticket, but don't see anything in the "New Tickets" section.  What am I doing wrong?

Depending on you configuration, you may also need to allow the anonymous creation of tickets

Setup --> General --> Assistance

if the 'from' email address does not match any of the users in your DB, it will not create a ticket if you don't allow anonymous creation/followup

Offline

#8 2012-06-19 22:44:25

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

ok....I got that part taken care of.  The automatic thing is still not working though.  I keep having to go to Setup>Automatic Actions and then click on the "Execute" button next to the "Next run: mailgate" icon.

The Settings for Mailgate are as follows:
Run Frequency:  1 Minute(s)
Status: Scheduled
Run Mode:  GLPI
Run Period:  0 -> 24
Number of days this action logs are stored:  30 Day(s)
Number of email to retrieve:  10

Offline

#9 2012-06-19 23:02:19

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

Re: New Ticket by Email

I had to configure a crontask to get mine to work.


Thanks,
Dan

Offline

#10 2012-08-09 18:33:22

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

This is what I have done for the crontask below.  The parts in bold is what I typed.  But this feature still does not work.  After saving this i did restart apache.

# crontab -e

# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command
*/1 * * * * /usr/bin/php /var/www/myhostname/front/cron.php

Offline

#11 2012-08-09 19:09:58

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

Re: New Ticket by Email

You need to change your run mode:

Run Mode:  GLPI --> CLI


Thanks,
Dan

Offline

#12 2012-08-09 20:10:04

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

I have changed GLPI --> CLI, but it is still not working.  Any ideas?

Offline

#13 2012-08-10 07:33:23

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: New Ticket by Email

From the command line, run

 /usr/bin/php /var/www/myhostname/front/cron.php --debug

Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#14 2012-08-10 15:19:06

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

I get this error message:

Could not open input file: /var/www/myhostname/front/cron.php

Offline

#15 2012-08-10 16:14:29

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: New Ticket by Email

So ?


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#16 2012-08-10 16:45:40

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

Re: New Ticket by Email

to be clear, you are using your own hostname and not "myhostname" ?


Thanks,
Dan

Offline

#17 2012-08-10 16:46:21

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

Correct

Offline

#18 2012-08-10 20:20:41

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

I had saw another post where someone used "data" instead of "www", and it worked for them.

/usr/bin/php /var/data/myhostname/front/cron.php --debug

But it brought up the same error message for me.

Offline

#19 2012-08-10 23:48:42

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

Re: New Ticket by Email

you would use your actual path to the cron.php file.

it is [path to php] [path to cron]


Thanks,
Dan

Offline

#20 2012-08-13 18:17:44

pinnergy75633
Member
Registered: 2012-05-31
Posts: 12

Re: New Ticket by Email

danh wrote:

you would use your actual path to the cron.php file.

it is [path to php] [path to cron]

That was it...I guess I was having a brain fart.  Forgot I installed it in a different location.

Thanks everyone for your help.

Offline

Board footer

Powered by FluxBB