본문으로 바로가기

[PHP] phpmailer openssl.dll 오류

category Helloworld!/PHP 2013. 5. 7. 09:26
SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (1588095023)
The following From address failed: 메일주소 : Called Mail() without being connected The following From address failed: 메일주소 : Called Mail() without being connected


phpmailer 라이브러리로 메일보내기를 했는데 위와같은 에러가 출력되면서

메일전송에 실패했다.

원인을 찾아보니 php.ini에서 openssl.dll이 주석처리 되있어서 ssl문제가 발생한 것.


php\ext안에 openssl.dll이 있는지 확인하고,

php\php.ini에서 extension=php_openssl.dll를 검색해 주석처리되있다면 주석을 지워준다.


;extension=php_openssl.dll //주석된 것
extension=php_openssl.dll //주석안된 것