0
I set up an HTML page to send email with Phpmailer, and on my Windows 10 computer it sent normally, but on the online Linux server returns the SMTP error: "SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting"
I believe it’s a security or door variable, but I don’t know which one to change.
It would be nice to [Edit] and log Phpmailer errors to be able to determine the exact cause
– Bacco
Bacco how can I check the error log?
– Natan Hoffmann
If you make a page containing only
<? phpinfo();
must see several server settings when accessing, one of them is the error log directive, which points to the correct location. Depending on the accommodation, you have to ask for access. Note in the posts above (or in the documentation), some of them probably also say how to turn on phpmailer’s debug mode, this may help– Bacco