2017-07-18 3 views
0

phpmailerクラスを使用してoutlook smtpから電子メールを送信しようとしています。次のエラーが表示されます。phpmailerクラスでoutlook smtpを使用して電子メールを送信する際に問題が発生しました

2017-07-18 09:19:33 Connection: opening to ssl://smtp.office365.com:587, timeout=300, options=array ('ssl' =>           array ('verify_peer' => false,           'verify_peer_name' => false,           'allow_self_signed' => true,          ), 
            ) 
2017-07-18 09:19:34 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 
             error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol [/var/www/html/application/third_party/phpmailer/class.smtp.php line 294] 
2017-07-18 09:19:34 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/var/www/html/application/third_party/phpmailer/class.smtp.php line 294] 
2017-07-18 09:19:34 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) [/var/www/html/application/third_party/phpmailer/class.smtp.php line 294] 
2017-07-18 09:19:34 SMTP ERROR: Failed to connect to server: (0) 
2017-07-18 09:19:34 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 
Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 

いくつか1つは私にこれを助けることができますか?

答えて

2

この質問を書くのにかかる時間に、この正確なエラーを修正する方法を説明するページを表示するエラーメッセージに含まれるリンクをクリックしている可能性があります。

SMTPSecure = 'ssl'Port = 587と一緒に使用することはできません。 SMTPSecure = 'tls'を設定します。

関連する問題