我有發送郵件的問題。我使用SwiftMailer 5.1.0和帳戶在Gmail,SMTP端口465和OpenSSL是啓用的,但我有這樣的錯誤:SwiftMailer連接建立錯誤
Serwer: smtp.gmail.com:465 ssl
From: BizIn - system mailowy <[email protected]>
To: [email protected]
Mail debug: Connection could not be established with host smtp.gmail.com [ #0]
在我的本地主機的一切是好和電子郵件被髮送。但在serwer上我有錯誤。
本地主機在版本5.4.31中使用PHP,但在服務器上是5.6.0。
這解決了我的問題:[https://stackoverflow.com /questions/38113860/error-stream-socket-enable-crypto-ssl-operation-failed-with-code-1-in-larav](https://stackoverflow.com/questions/38113860/error-stream-socket- enable-crypto-ssl-operation-failed-with-code-1-in-larav) –