Koozali.org: home of the SME Server

[RESOLU] PHP-SCL & GLPI envoi de mail

Offline ericcar

  • 19
  • +0/-0
[RESOLU] PHP-SCL & GLPI envoi de mail
« on: March 26, 2019, 06:15:01 PM »
Bonjour

J'utilise GLPI https://glpi-project.org/fr/ dans une ibay de mon sme 9.2 ça fonctionne sauf l'envoi de mail automatique.

Comme dans la doc J'ai ajouté une tache cron
*/5 * * * *  /usr/bin/php71 /home/e-smith/files/ibays/glpi/html/front/cron.php &>/dev/null

Dans les logs la tache cron se lance et ne génère pas d'erreur

Dans GLPI le mail de test fonctionne bien en direct.

Dans GLPI il y a une deuxième possibilité pour l'envoi de mail, renseigner un serveur smtp. Là aussi ça ne fonctionne pas, le mail de test ne passe pas.

Avez vous une idée du problème.
« Last Edit: March 26, 2019, 07:36:49 PM by ericcar »

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: PHP-SCL & GLPI envoi de mail
« Reply #1 on: March 26, 2019, 06:27:38 PM »
Je voudrais demander de l'aide dans leurs forums - c'est vraiment une application spécifique.

Notez qu'il existe une option --debug

=========================

I would ask in their forums for help - it is application specific really.

Note there is a --debug option

https://forum.glpi-project.org/viewtopic.php?id=163741
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ericcar

  • 19
  • +0/-0
Re: PHP-SCL & GLPI envoi de mail
« Reply #2 on: March 26, 2019, 07:35:49 PM »
effectivement le problème venait de GLPI

Setup》automatic task 》queuednotification option CLI au lieu de GLPI   :-P

A+

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: [RESOLU] PHP-SCL & GLPI envoi de mail
« Reply #3 on: March 27, 2019, 12:23:52 AM »
Le problème est que nous n’avons pas GPLI, nous n’avons donc aucune idée du fonctionnement de son logiciel de messagerie. Vous devez déboguer le script PHP.

The issue is we do not have GPLI, so we have no idea how its mailer works. You need to debug the PHP script

Autorisations?/Permissions?

Code: [Select]
ll /home/e-smith/files/ibays/glpi/html/front/cron.php
Debug?

Code: [Select]
/usr/bin/php71 /home/e-smith/files/ibays/glpi/html/front/cron.php --debug
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation