How do I fix SMTP failed to connect to server?

Skip to content

Support » Plugin: Easy WP SMTP » SMTP ERROR: Failed to connect to server: [0]SMTP connect[] failed. PHPMailer

  • Good night,

    Install the pluggin and configure it according to the official documentation [I have a Gmail account], and then I get and error:

    “SMTP Error: Could not authenticate”

    I proceeded to search the forums, where I came to the conclusion that the problem was in the Hosting [Bluehost], so I contacted them, they made changes on the server, and according to them the problem should be solved, but it was not, but the truth is that the error changed to:

    SMTP ERROR: Failed to connect to server: [0]SMTP connect[] failed. //github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    Then they told me that everything was solved on his side, that the problem was the pluggin and I should have to contact the plugin support.

    I have tried everything and the problem continues, someone could help me.

    Thank you

    • This topic was modified 2 years, 3 months ago by hachador.

  • The topic ‘SMTP ERROR: Failed to connect to server: [0]SMTP connect[] failed. PHPMailer’ is closed to new replies.

 

Basic Configuration for SMTP Server

Problem

Description: User was unable to configure the SMTP e-mail server.

Solution

  1. Check the SMTP server settings.
    • SMTP server address—Check the host name or network address of the SMTP e-mail server. Typical SMTP server addresses or host names are as follows:

      • smtp.juniper.net

      • smtp.gmail.com

      • smtp.mail.yahoo.com

      • AWS

    • TLS—Check whether Transport Layer Security [TLS] option is enabled. This setting ensures that the information is transmitted over an encrypted channel. Not all SMTP servers support encryption. If TLS option is enabled for an SMTP server that does not support TLS, then disable the TLS option.

    • Port—Check with your e-mail service provider for the port number that the SMTP server listens to. Generally, port number 587 is used for a TLS connection and port number 25 is used for unencrypted connections.

    Typical SMTP server settings are as follows:

    • smtp.juniper.net—Set TLS to No and port number to 25

    • smtp.gmail.com—Set TLS to Yes and port number to 587

    • smtp.mail.yahoo.com—Set TLS to Yes and port number to 465 or 587

  2. Check the SMTP authentication settings.
    • Check whether the e-mail server requires authentication. If yes, then specify the following options.

      • From Name

      • User Name

      • Password

      • From E-mail Address

      Note

      If Gmail blocks SMTP e-mails, then log in to Gmail account, navigate to Advanced Settings > Security > Less secure app access and click the toggle button to turn on Allow less secure apps option.

  3. Test SMTP settings by sending a test e-mail.

    If you are unable to send a test e-mail:

    1. Check the SMTP server settings to see if they match the SMTP server provider’s settings.
    2. Check authentication credentials.
    3. Check the SMTP server provider’s security settings for SMTP [for example: Gmail blocks SMTP email unless user selects less secure app settings on their gmail account].
    4. Check whether there is network access from CSO to the SMTP server.
    5. Check whether the firewall is blocking SMTP traffic to SMTP server or whether the ports are blocked. If the server settings and authentication settings are correct, check whether the firewall is blocking port 587 and 465 and SMTP traffic. If it is a case of the firewall blocking, then work with the network administrator to unblock ports 465, 587, and SMTP traffic.
 

Fix SMTP Server error in Email

An SMTP Server error [such as number 0x800CCC79] can be caused by an error in the setup in your email client program [Outlook Express or Outlook] for the outgoing [SMTP] mail server. A mistake in the username, password, server address, or server authentication can produce this error message when attempting to send an email. To correct this error, you need to know from your email provider what type of authentication, if any, is required by their mail server.

To verify your existing SMTP server settings:

    1. Open your email client program [Outlook Express, Outlook, Eudora or Windows Mail]
    2. Click "Accounts" in the "Tools" menu
    3. Click on your email account then click "Properties" button
    4. Click "General" tab
    5. Ensure that the "E-mail address" is your valid address for this account
    6. Click "Servers" tab
    7. Verify your account name is complete and its password is correct for this account
    8. Un-check "Log on using Secure Password Authentication" [unless specified otherwise by your email provider]
    9. Check or uncheck [as directed by your email provider ]"My Server requires authentication". If authentication is required by your provider, click the Settings button. On the "Logon Info" screen, select as specified by your email provider, either
      • "Use same settings as my incoming mail server"; or

      • "Log on using" and enter the specified Account Name and Password.

    10. Delete messages in the "Outbox" folder and send your email message again. 

Note: To setup or verify all your email settings, follow the instructions at Setup and Use Email Service .

Fix Common Gmail Pop3 Errors

Repeatedly prompted for your username and password or 'invalid credentials' error.

 Fix:  Enable POP in Gmail as follows:
  1. Sign in to Gmail.
  2. Click the gear icon in the upper right, then select Settings.
  3. Click Forwarding and POP/IMAP.
  4. Select Enable POP for all mail or Enable POP for mail that arrives from now on.
  5. Choose what to do with your messages after your POP client or device receives them.
  6. Click Save Changes.

The connection to the server has failed. Account: 'Gmail', Server: 'pop.gmail.com', Protocol: POP3, Port: 110, Secure[SSL]: Yes, Socket Error: 10060, Error Number: 0x800CCC0E

Fix: On the "Advanced" tab of your POP email client program [such as Outlook, Windows Live Mail, Outlook Express, or Thunderbird], set "Incoming mail [POP3]:" to 995

The message could not be sent because the server rejected the sender's e-mail address. The sender's e-mail address was ''. Subject 'example', Account: 'pop.gmail.com', Server: 'smtp.gmail.com', Protocol: SMTP, Server Response: '530 5.5.1 Authentication Required f45sm8616pyh', Port: 25, Secure[SSL]: Yes, Server Error: 530, Error Number: 0x800CCC78

Fix: On the Servers tab of your POP email client program, enable My server requires authentication beneath Outgoing Mail Server.

Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'pop.gmail.com', Server: 'pop.gmail.com', Protocol: POP3, Port: 995, Secure[SSL]: No, Error Number: 0x800CCC0F.  

Fix: On the Advanced tab of your POP email client program, enable This server requires an encrypted connection [SSL] for the POP server. 

Your SMTP3 server has not responded in 60 seconds. Would you like to wait another 60 seconds for the server to respond? A time-out occurred while communicating with the server. Account: ' pop.gmail.com', Server: 'smtp.gmail.com', Protocol: SMTP, Port: 465, Secure[SSL]: No, Error Number: 0x800CCC19

Fix: On the Advanced tab of your POP email client program, enable This server requires an encrypted connection [SSL] for the SMTP server. 

The host 'smpt.gmail.com' could not be found. Please verify that you have entered the server name correctly. Account: 'pop.gmail.com', Server: 'smpt.gmail.com', Protocol: SMTP, Port: 465, Secure[SSL]: Yes, Socket Error: 11001, Error Number: 0x800CCC0D.  

Fix:  On the Servers tab, change smpt.gmail.com to smtp.gmail.com 

An unknown error has occurred. Account: 'Gmail', Server: 'pop.gmail.com', Protocol: POP3, Port: 995, Secure[SSL]: Yes, Error Number: 0x800C0133.  

Fix:  In your POP email client program, click File > Folder > Compress All Folders.

Note: To setup or verify all your email settings, follow the instructions at Setup and Use Email Service.

See related articles:

  • Common Errors with Outlook [by Google] 
  • Setup and Use Email Service

To return to CTI's menu of Error Fixes, click here or use the back arrow at the top of your Internet browser. To go directly to CTI's menu of Help and Tutorials, click here.

{rev. 03.22.2013} 

Can't connect to SMTP server?

This could be due to a temporary issue with their network or mail server or due to a configuration within your middleware [firewall, antivirus, etc.] blocking the connectivity.

Why does SMTP connection fail?

The error 'SMTP connect[] failed' can be caused due to the many reasons, which we'll discuss one by one. Wrong username and password given in SMTP authentication. SMTP port blocked in mail server firewalls. SSL/TLS not support in mail server and encryption is enabled in WP setting.

Chủ Đề