I'm using AWS Elastic Beanstalk and I can not send mail with PHPMailer. On my local server it works perfectly with exactly the same configuration. AWS Elastic Beanstalk uses Red Hat 4.8.3-9 ... I've tried all PHPMailer troubleshooting techniques and all are working normally. The only one that leaves me doubting is the SELinux blocking that I do not know if it will be a problem, but anyway the error is not the same.
I tried to use the command getsebool httpd_can_sendmail
and the response was this getsebool: SELinux is disabled
.
The PHPMailer error:
SMTP ERROR: Failed to connect to server: (0)
Is this the problem? Does anyone know how to solve it?