Bonjour,
Les notifications Jorani sont habituellement envoyées par mail. Notre serveur de messagerie est de type Exchange hébergé en Microsoft 365.
Depuis la modification de la sécurité des serveurs Exchange les notifications ne sont plus envoyées.
Le fichier email.php est renseigné comme ci-dessous :
<?php defined('BASEPATH') OR exit('No direct script access allowed.');
$config['useragent'] = 'PHPMailer';
$config['protocol'] = 'smtp';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['smtp_host'] = '
smtp.office365.com';
$config['_smtp_auth'] = TRUE;
$config['smtp_user'] = '********@********.fr';
$config['smtp_pass'] = '************';
$config['smtp_port'] = '587';
$config['smtp_timeout'] = '30';
$config['smtp_crypto'] = 'tls';
$config['smtp_debug'] = 0;
$config['smtp_auto_tls'] = FALSE;
$config['smtp_conn_options'] = array();
$config['wordwrap'] = TRUE;
$config['wrapchars'] = 76;
$config['mailtype'] = 'html';
$config['charset'] = 'UTF-8';
$config['validate'] = TRUE;
$config['wordwrap'] = FALSE;
$config['wrapchars'] = 70;
$config['validate'] = FALSE;
$config['priority'] = 3;
$config['crlf'] = "\n";
$config['newline'] = "\n";
$config['bcc_batch_mode'] = FALSE;
$config['bcc_batch_size'] = 200;
$config['encoding'] = '8bit';
Voici ce que m'envoie testemail.php
Test of your e-mail configuration
INFO: Selecting SMTP Protocol.
INFO: SMTP with authentication.
INFO: SMTP with crypto.
SERVER -> CLIENT: 220
PR0P264CA0140.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 28 Jul 2022 13:36:55 +0000
CLIENT -> SERVER: EHLO localhost
SERVER -> CLIENT:
250-PR0P264CA0140.outlook.office365.com Hello [xxx.xxx.xxx.xxx]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 220 2.0.0 SMTP server ready
CLIENT -> SERVER: EHLO localhost
SERVER -> CLIENT:
250-PR0P264CA0140.outlook.office365.com Hello [xxx.xxx.xxx.xxx]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8
CLIENT -> SERVER: AUTH LOGIN
SERVER -> CLIENT: 334 VXNlcm5hbWU6
CLIENT -> SERVER: YXBhcy5jb25nZXNAYXBhczE3LmZy
SERVER -> CLIENT: 334 UGFzc3dvcmQ6
CLIENT -> SERVER: YXBhX0FwYXNKb3JhbmkxNzMwMA==
SERVER -> CLIENT: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit
https://aka.ms/smtp_auth_tls. [
PR0P264CA0140.FRAP264.PROD.OUTLOOK.COM]
SMTP ERROR: Password command failed: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit
https://aka.ms/smtp_auth_tls. [
PR0P264CA0140.FRAP264.PROD.OUTLOOK.COM]
SMTP Error: Could not authenticate.CLIENT -> SERVER: QUIT
SERVER -> CLIENT: SMTP ERROR: QUIT command failed: SMTP Error: Could not authenticate.ERROR: PHPMailer has encountered an error.
SMTP Error: Could not authenticate.
Troubleshooting
In case of error, here are some additional steps:
•Check the configuration with your IT Admin team.
•If you are using GMAIL, please read this article.
•The STMP port may be blocked by your organization/server's security policy (firewall, etc.).
•When running SELinux, the webserver is blocked by default (it cannot send e-mails or open a network connection). Please consider unblocking it:
$ setsebool -P httpd_can_sendmail 1
$ setsebool -P httpd_can_network_connect 1
•Some e-mail servers (eg Office 360) require to set a valid sender e-mail. Update config/config.php
$config['from_mail'] = '
do....@reply.me';
•Some antivirus block STMP port by default.
•Some SMTP server require the application server sending emails (i.e. Jorani) to be whitelisted (on the SMTP server).
•Your webhosting company may forbid email functions.
•Maybe that the emails are sent but put into SPAM folder.
Le mot de passe de la boîte aux lettres est bien le bon. J'ai refais tout le tour de la configuration, je ne vois pas ce qui peut bloquer.