如何在redhat AMI中配置phpmailer以避免PHPMailer错误:SMTP connect()失败

时间:2015-11-28 14:26:41

标签: php amazon-web-services amazon-ec2 phpmailer redhat

我开发了一个PHP和MySQL webapp,它也使用phpmailer ..当我在我的WAMP中使用它时没有任何错误。但是当我通过aws中的EC2实例将我的网站上传到在线服务器并选择redhat AMI时...一切顺利,直到我发现我发布的网站不会发送任何邮件。相反,它返回错误{{1} } ..

关于我的代码的信息很少:

Message was not sent.PHPMailer Error: SMTP connect() failed.

PS :如果需要,我可以添加更多.conf或.ini文件

0 个答案:

没有答案