Configuration smtp o365
Posté : mar. 24 juil. 2018 09:42
Bonjour,
Etant en pleine configuration de Gestsup, je rencontre un problème lors de la configuration du smtp.
Nous utilisons office 365 pour nos mails.
Voici l'erreur que je recontre :
SMTP SERVER:
2018-07-24 07:34:50 Connection: opening to ssl://smtp.office365.com:587, timeout=300, options=array()
2018-07-24 07:34:50 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:1408F10B:SSL routines:ssl3_get_record:wrong version number [C:\wamp64\www\components\PHPMailer\src\SMTP.php line 325]
2018-07-24 07:34:50 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [C:\wamp64\www\components\PHPMailer\src\SMTP.php line 325]
2018-07-24 07:34:50 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) [C:\wamp64\www\components\PHPMailer\src\SMTP.php line 325]
2018-07-24 07:34:50 SMTP ERROR: Failed to connect to server: (0)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
( ! ) Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting in C:\wamp64\www\components\PHPMailer\src\PHPMailer.php on line 1726
( ! ) PHPMailer\PHPMailer\Exception: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting in C:\wamp64\www\components\PHPMailer\src\PHPMailer.php on line 1726
Call Stack
# Time Memory Function Location
1 0.0001 413656 {main}( ) ...\index.php:0
2 0.0312 516512 include( 'C:\wamp64\www\preview_mail.php' ) ...\index.php:884
3 0.0316 523712 require( 'C:\wamp64\www\core\mail.php' ) ...\preview_mail.php:27
4 0.0346 617192 PHPMailer\PHPMailer\PHPMailer->send( ) ...\mail.php:476
J'ai utilisé la configuration suivante :
Smtp : smtp.office365.com
Port smtp : 587
SSL : Activée
Préfixe smtp : ssl//
classe smtp : IsSMTP
Serveur smtp authentifié : Oui
Merci d'avance pour vos réponses.
Etant en pleine configuration de Gestsup, je rencontre un problème lors de la configuration du smtp.
Nous utilisons office 365 pour nos mails.
Voici l'erreur que je recontre :
SMTP SERVER:
2018-07-24 07:34:50 Connection: opening to ssl://smtp.office365.com:587, timeout=300, options=array()
2018-07-24 07:34:50 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:1408F10B:SSL routines:ssl3_get_record:wrong version number [C:\wamp64\www\components\PHPMailer\src\SMTP.php line 325]
2018-07-24 07:34:50 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [C:\wamp64\www\components\PHPMailer\src\SMTP.php line 325]
2018-07-24 07:34:50 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) [C:\wamp64\www\components\PHPMailer\src\SMTP.php line 325]
2018-07-24 07:34:50 SMTP ERROR: Failed to connect to server: (0)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
( ! ) Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting in C:\wamp64\www\components\PHPMailer\src\PHPMailer.php on line 1726
( ! ) PHPMailer\PHPMailer\Exception: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting in C:\wamp64\www\components\PHPMailer\src\PHPMailer.php on line 1726
Call Stack
# Time Memory Function Location
1 0.0001 413656 {main}( ) ...\index.php:0
2 0.0312 516512 include( 'C:\wamp64\www\preview_mail.php' ) ...\index.php:884
3 0.0316 523712 require( 'C:\wamp64\www\core\mail.php' ) ...\preview_mail.php:27
4 0.0346 617192 PHPMailer\PHPMailer\PHPMailer->send( ) ...\mail.php:476
J'ai utilisé la configuration suivante :
Smtp : smtp.office365.com
Port smtp : 587
SSL : Activée
Préfixe smtp : ssl//
classe smtp : IsSMTP
Serveur smtp authentifié : Oui
Merci d'avance pour vos réponses.