我在两台服务器locaweb和AWS中具有相同的SMTP配置。 在locaweb中还可以,但在aws中会出现错误:
array(19) {
["authenticate"]=>
string(35) "SMTP Error: Could not authenticate."
["connect_host"]=>
string(43) "SMTP Error: Could not connect to SMTP host."
["data_not_accepted"]=>
string(30) "SMTP Error: data not accepted."
}
The SMTP debugging output is shown below:
2018-07-19 18:42:03 Connection: opening to ssl://email-ssl.com.br:465, timeout=300, options=array (
)
2018-07-19 18:42:03 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://email-ssl.com.br:465 (Permission denied)
2018-07-19 18:42:03 SMTP ERROR: Failed to connect to server: Permission denied (13)
2018-07-19 18:42:03 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
在AWS服务器上是否需要一些配置?我需要安装一些库吗?