S
S
sorry_i_noob2018-10-18 14:45:34
PHP
sorry_i_noob, 2018-10-18 14:45:34

With OpenServer, mail is sent, and on the hosting, when sending mail, an error is generated Mailer Error: SMTP connect() failed. How to fix?

Hello. With OpenServer, mail is sent, and on the hosting, when sending mail, an error is generated Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubl... How can I fix this error? I am using the PhpMailer class to send mail.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Syomov, 2018-10-18
@kotomyava

If, at the same time, the same remote smtp server is used, then the connection to external smtp can be simply prohibited on the hosting. This can be checked with technical support.
And if they are different, then you should check the connection settings, ports, encryption, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question