Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPMailer suddenly stop working on diffrent hosts #2885

Closed
GetASiteDev opened this issue Mar 21, 2023 · 1 comment
Closed

PHPMailer suddenly stop working on diffrent hosts #2885

GetASiteDev opened this issue Mar 21, 2023 · 1 comment

Comments

@GetASiteDev
Copy link

I just got to me that PHPMailer no longer can connect to the smtp server.

2023-03-21 14:07:28 SMTP ERROR: Failed to connect to server: Connection refused (111)
SMTP Error: Could not connect to SMTP host. Failed to connect to server
Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host. Failed to connect to serverSMTP server error: Failed to connect to server SMTP code: 111 Additional SMTP info: Connection refused

I have websites on diffrent webhosts with diffrent mailservers and its the same problem on everyone.
No change has been made in the PHP version or on the log in information for the mail accounts.

@Synchro
Copy link
Member

Synchro commented Mar 21, 2023

"Connection refused" means what it says – the mail server, or the network it's on, rejected your attempt at connecting to it. It suggests your hosting provider(s) have decided to block outbound SMTP, which is a very common thing to do, and has nothing to do with PHPMailer. What results did you get when you tried the tests in the troubleshooting guide?

@Synchro Synchro closed this as completed Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants