CentOS7 上でPostfixを使用してメール送信しようとしています。
sendmailコマンドでは正常にメール送信されます。
php artisan tinkerより
コマンドを叩くと以下のエラーになりました。
PHP
1PHP warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: 2error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in /var/www/Retiree/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 266 3PHP warning: stream_socket_client(): Failed to enable crypto in /var/www/Retiree/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 266 4PHP warning: stream_socket_client(): unable to connect to ssl://mail.xxxx.com:25 (Unknown error) in /var/www/Retiree/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 266 5Swift_TransportException with message 'Connection could not be established with host mail.xxxx.com [ #0]' 6
どこが悪いのかおしえてください。
また、gmailにすると
正常に送信されます。
回答1件
あなたの回答
tips
プレビュー