2013-08-21 147 views
0

無法發送郵件(我使extension=php_openssl.dll //電子郵件) 和我的PHP版本5.4.12是的PHPMailer無法發送

錯誤:

SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) 
SMTP Connect() failed. 
Mailer Error: SMTP Connect() failed. 

回答

0

確保SSL支持被啓用,所以只是使extension=php_openssl.dll

,你也可以嘗試使用$mail->SMTPDebug = 1;

,如果它不活像K優可以再次嘗試

// if you're using SSL 
$mail->SMTPSecure = 'ssl'; 
// OR use TLS 
$mail->SMTPSecure = 'tls'; 
+0

同樣的錯誤.... – user1834950

+0

我怎麼能解決我的問題... – user1834950

+0

試試這個//如果你使用SSL'$ MAIL-> SMTPSecure = 'SSL';' // OR使用TLS'$ mail-> SMTPSecure ='tls';' –