Email et création de ticket

Installation & Configuration du logiciel
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

Je teste cela mais je me suis connecter pour voir si cela supprime le mail sur l'outlook ou meme le lire et non aucun des deux est-ce normal ?
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Merci d'indiquer la configuration de votre tâche planifiée ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

effectivement le problème se reproduit.

excuser moi, quesque la configuration de ma tâche planifiée ?
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Pour automatiser la relève de la BAL, une tâche planifiée sur le système d'exploitation doit être créer :

Code : Tout sélectionner

more /etc/crontab
Votre serveur est il publié sur Internet ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

je crois que c'est ceci
Fichiers joints
Capture d'écran 2023-10-12 161044.png
Capture d'écran 2023-10-12 161044.png (12.1 Kio) Vu 409 fois
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

non il est en interne.
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Alors déja modifier la fréquence de relève à 5 minutes

remplacer : par : puis recharger la configuration

Code : Tout sélectionner

service cron restart
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Ensuite exécuter la commande suivante et indiquer le résultat :

Code : Tout sélectionner

php /var/www/html/mail2ticket.php
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Nobodix
Gsup LEVEL 1
Messages : 19
Enregistré le : jeu. 12 oct. 2023 15:19

GESTSUP IMAP CONNECTOR v3.2.38
DATE : 2023-10-12 14:17:43
SERVER : outlook.office365.com
MODE : single
AUTHENTICATION TYPE : oauth_azure
MAILBOX : support@westlink.fr
OAUTH SINGLE GENERATE ACCESS TOKEN : eyJ0eXAiOiJKV1QiLCJub25j*****************
OAUTH SINGLE UPDATE REFRESH TOKEN : 0.ARAAjgmwVtAcm0WHUvGYly*****************
CONNEXION : OK
UNSEEN MAIL : 1
[support@westlink.fr] [mail 1] mail data : subject="test ok ?" from="alexis.dardot@techcity.fr" date="2023-10-12 14:16:26" body_type="html"
[support@westlink.fr] [mail 1] find gestsup user id : find 39 for address alexis.dardot@techcity.fr
[support@westlink.fr] [mail 1] create new ticket
[support@westlink.fr] [mail 1] ticket created : #2079
SMTP SERVER :
DEBUG : Images base64 detected conversion (gestsup_logo)
2023-10-12 14:17:44 Connection: opening to smtp.office365.com:587, timeout=30, options=array()
2023-10-12 14:17:44 Connection: opened
2023-10-12 14:17:44 SMTP INBOUND: "220 PR1P264CA0116.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:17:43 +0000"
2023-10-12 14:17:44 SERVER -> CLIENT: 220 PR1P264CA0116.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 12 Oct 2023 14:17:43 +0000
2023-10-12 14:17:44 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:17:44 SMTP INBOUND: "250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:17:44 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:17:44 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:17:44 SMTP INBOUND: "250-DSN"
2023-10-12 14:17:44 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:17:44 SMTP INBOUND: "250-STARTTLS"
2023-10-12 14:17:44 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:17:44 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:17:44 SERVER -> CLIENT: 250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-STARTTLS250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-10-12 14:17:44 CLIENT -> SERVER: STARTTLS
2023-10-12 14:17:44 SMTP INBOUND: "220 2.0.0 SMTP server ready"
2023-10-12 14:17:44 SERVER -> CLIENT: 220 2.0.0 SMTP server ready
2023-10-12 14:17:44 CLIENT -> SERVER: EHLO 192.168.1.36
2023-10-12 14:17:44 SMTP INBOUND: "250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]"
2023-10-12 14:17:44 SMTP INBOUND: "250-SIZE 157286400"
2023-10-12 14:17:44 SMTP INBOUND: "250-PIPELINING"
2023-10-12 14:17:44 SMTP INBOUND: "250-DSN"
2023-10-12 14:17:44 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2023-10-12 14:17:44 SMTP INBOUND: "250-AUTH LOGIN XOAUTH2"
2023-10-12 14:17:44 SMTP INBOUND: "250-8BITMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-BINARYMIME"
2023-10-12 14:17:44 SMTP INBOUND: "250-CHUNKING"
2023-10-12 14:17:44 SMTP INBOUND: "250 SMTPUTF8"
2023-10-12 14:17:44 SERVER -> CLIENT: 250-PR1P264CA0116.outlook.office365.com Hello [80.11.26.112]250-SIZE 157286400250-PIPELINING250-DSN250-ENHANCEDSTATUSCODES250-AUTH LOGIN XOAUTH2250-8BITMIME250-BINARYMIME250-CHUNKING250 SMTPUTF8
2023-10-12 14:17:44 Auth method requested: XOAUTH2
2023-10-12 14:17:44 Auth methods available on the server: LOGIN,XOAUTH2

Fatal error: Uncaught League\OAuth2\Client\Provider\Exception\IdentityProviderException: Bad Request in /var/www/html/vendor/greew/oauth2-azure-provider/src/Provider/Azure.php:89 Stack trace: #0 /var/www/html/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(726): Greew\OAuth2\Client\Provider\Azure->checkResponse() #1 /var/www/html/vendor/league/oauth2-client/src/Provider/AbstractProvider.php(635): League\OAuth2\Client\Provider\AbstractProvider->getParsedResponse() #2 /var/www/html/vendor/phpmailer/phpmailer/src/OAuth.php(113): League\OAuth2\Client\Provider\AbstractProvider->getAccessToken() #3 /var/www/html/vendor/phpmailer/phpmailer/src/OAuth.php(128): PHPMailer\PHPMailer\OAuth->getToken() #4 /var/www/html/vendor/phpmailer/phpmailer/src/SMTP.php(606): PHPMailer\PHPMailer\OAuth->getOauth64() #5 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(2205): PHPMailer\PHPMailer\SMTP->authenticate() #6 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(2019): PHPMailer\PHPMailer\PHPMailer->smtpConnect() #7 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(1678): PHPMailer\PHPMailer\PHPMailer->smtpSend() #8 /var/www/html/vendor/phpmailer/phpmailer/src/PHPMailer.php(1516): PHPMailer\PHPMailer\PHPMailer->postSend() #9 /var/www/html/core/mail.php(909): PHPMailer\PHPMailer\PHPMailer->send() #10 /var/www/html/core/imap_oauth.php(659): include('...') #11 /var/www/html/mail2ticket.php(165): require('...') #12 {main} thrown in /var/www/html/vendor/greew/oauth2-azure-provider/src/Provider/Azure.php on line 89
2023-10-12 14:17:44 CLIENT -> SERVER: QUIT
2023-10-12 14:17:44 SMTP INBOUND: "221 2.0.0 Service closing transmission channel"
2023-10-12 14:17:44 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
2023-10-12 14:17:44 Connection: closed
Avatar du membre
Flox
Administrateur du site
Messages : 9049
Enregistré le : jeu. 21 juin 2012 19:00

Pouvez-vous indiquer si votre connecteur SMTP est fonctionnel ?
GestSup: 3.2.47 | Debian: 12 | Apache: 2.4.58 | MariaDB: 11.3.2 | PHP: 8.3.6 | https://doc.gestsup.fr/
Répondre