總是time out的原因是什么???
2016-10-21 00:19:22 Connection: opening to smtp.aliyun.com:25, timeout=300, options=array ( ) 2016-10-21 00:19:43 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client() [function.stream-socket-client]: unable to connect to smtp.aliyun.com:25 (由于連接方在一段時(shí)間后沒(méi)有正確答復(fù)或連接的主機(jī)沒(méi)有反應(yīng),連接嘗試失敗。 ) 2016-10-21 00:19:43 SMTP ERROR: Failed to connect to server: 由于連接方在一段時(shí)間后沒(méi)有正確答復(fù)或連接的主機(jī)沒(méi)有反應(yīng),連接嘗試失敗。 (10060) 2016-10-21 00:19:43 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Message could not be sent.Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
上面是開(kāi)了那個(gè)debug給的反饋,用smtp.gmail.com不行,用smtp.aliyun.com也不行,都是time out。
2016-10-22
stream_socket_client這個(gè)函數(shù)單獨(dú)用的時(shí)候會(huì)出問(wèn)題嗎
2016-10-21
你的PHP套件開(kāi)啟了openssl模塊的支持嗎?