Deliverability

Klenty "SMTP test failed" and "Imap test failed": how to fix

Klenty's "SMTP test failed", "Imap test failed", "Wrong SMTP Host", "Wrong IMAP Host" and "Please enable SSL" errors mean the mailbox server rejected or couldn't be reached with the details you entered. Recheck host, port, SSL setting, username and password against your provider's values, then reconnect.

Sohail HussainSohail Hussain9 min read

Short answer

  • Check four values in order: host names, port, the SSL toggle and the password. Fill in the IMAP details as well as the SMTP ones, then reconnect.
  • On Gmail, turn on IMAP and use an app password if 2-Step Verification is on. On Microsoft 365, SMTP AUTH may be off for the mailbox.
  • If every value matches and the test still fails, try the same settings in a desktop mail client to see whether the mailbox or the tool is the problem.

You tried to connect a mailbox through SMTP/IMAP and got SMTP test failed, Imap test failed, Wrong SMTP Host, Wrong IMAP Host or Please enable SSL. In every case the tool opened a connection with the values you typed and the mail server did not accept it. The message rarely says which value was wrong, so you check them one at a time.

Klenty's own help article on handling email connection errors covers these errors. As far as that article shows, the fix is to recheck host, port and the SSL setting, then reconnect with the IMAP details filled in. It doesn't list provider-specific values, so this page adds those and a way to tell which cause you have.

Why the test fails

Sending (SMTP) and reading replies (IMAP) are two separate connections, and either can fail. Note which message you got. Klenty doesn't publish what each message maps to internally, so the table shows the usual readings, not guarantees.

MessageLikely causeFirst thing to check
SMTP test failedWrong port, encryption, username or password on the outgoing serverPort and SSL toggle, then login
Imap test failedSame for the incoming server, or IMAP is switched off on the mailboxIMAP enabled, IMAP port
Wrong SMTP HostTypo, wrong server, or a server that doesn't answer on that portHost spelled exactly as your provider gives it
Wrong IMAP HostSame, for the incoming serverHost and IMAP port
Please enable SSLThe server expects encryption and the toggle is off, or the toggle doesn't match the portSSL toggle against the port

A wrong password can sometimes show up as a generic failure or even a host error, so don't rule it out because the message mentions the host.

Step-by-step fixes

1. Enter every value explicitly

  1. Open the form where you add a mailbox through SMTP/IMAP (the exact menu names differ by tool and version).
  2. If the tool tries to fill in settings automatically and the test fails, switch to the manual or advanced fields.
  3. Type the SMTP host and port, and the IMAP host and port. Don't rely on auto-lookup, which is a common source of a wrong host.
  4. Fill in both the SMTP and IMAP sections before you click connect.

The host and port come from your email provider, or from whoever set up the mailbox. Host names are often custom, so no single value works for everyone.

2. Match the port to the SSL toggle

The port decides what encryption the server expects. Most "Please enable SSL" errors are a mismatch between the toggle and the port.

PortProtocolEncryptionTypical toggle
465SMTPImplicit SSL/TLSSSL on
587SMTPSTARTTLSSSL off, or "TLS" if offered
993IMAPImplicit SSL/TLSSSL on
143IMAPSTARTTLSSSL off, or "TLS" if offered
25SMTPServer-to-serverAvoid; often blocked

If the form has one SSL switch, the safest pairing is 465 with SSL on for SMTP and 993 with SSL on for IMAP. Port 587 with SSL on is a frequent failure, because servers expect STARTTLS there rather than implicit SSL. I can't see how every tool's form treats STARTTLS, so if 587 fails one way, flip the switch and retest.

Change one value at a time

Retest after each change, not after three. If you change host, port and SSL together and it starts working, you won't know which one mattered when the same error shows up on the next mailbox.

3. Check the host names

Use the names your provider publishes. Don't build one by putting smtp. in front of your domain.

ProviderSMTP hostIMAP host
Gmail / Google Workspacesmtp.gmail.comimap.gmail.com
Microsoft 365smtp.office365.comoutlook.office365.com
Zoho Mail (US data center)smtp.zoho.comimap.zoho.com

These are common values as of November 2026; confirm them in your provider's current help pages. Zoho uses different hosts in other regions. For shared hosting, use the exact names from your host's setup page. If the server's certificate is issued for the hosting company's name instead of the name you typed, an SSL test can fail even though the host is reachable.

Also look for stray spaces, capital letters pasted from a document, a leading https:// or a trailing :465. The host field takes the bare name only.

4. Check the username and password

  1. Use the full email address as the username unless your provider says otherwise.
  2. Gmail / Google Workspace: if 2-Step Verification is on, create an app password in your Google Account and use that instead of the normal password. A Workspace admin can restrict app passwords.
  3. Type the password by hand if a paste keeps failing; a trailing space is easy to copy by accident.

5. Turn IMAP on

Imap test failed with correct settings often means IMAP access is off on the mailbox. In Gmail it is a setting under the forwarding and POP/IMAP tab of the settings page. Some hosts disable IMAP per plan or per mailbox. Enable it, wait a few minutes and test again.

6. Microsoft 365: SMTP AUTH and basic sign-in

Microsoft 365 can reject the connection even when host and port are right. SMTP AUTH can be disabled for a mailbox or the whole tenant, and many tenants restrict password sign-in. Your admin can enable SMTP AUTH for the single mailbox you are connecting. Personal Outlook.com accounts generally need OAuth, so a password-based SMTP form may not work for them at all; use an OAuth-based connection if the tool offers one.

Don't weaken the whole tenant

If SMTP AUTH is off tenant-wide, ask your admin to enable it only for the mailbox you are connecting. Turning it on for every user to fix one connection widens your attack surface.

7. Rule out the network

  • Some networks and hosting platforms block outbound port 25, and sometimes 465 or 587. Ask whoever runs the mail server which ports are open.
  • Gmail and Microsoft may block a sign-in from a new location. Check the account's security notifications and approve the attempt.
  • Several failed logins in a row can lock an account for a while. Wait before retrying.
  • Some business mail servers accept connections only from approved IP addresses. Ask your admin.

Then add the same account to a desktop mail client with the same values. If the client fails too, the problem is on the mailbox side. If it works, send the details below to the tool's support.

Checklist before you try again

  • SMTP and IMAP hosts copied from your provider, with no spaces, https:// or port
  • SMTP port and IMAP port filled in, not left to auto-lookup
  • SSL toggle matches the port (465 and 993 usually on)
  • Username is the full email address
  • App password in use if 2-Step Verification is on
  • IMAP enabled on the mailbox
  • SMTP AUTH enabled for Microsoft 365 mailboxes
  • Both SMTP and IMAP sections filled in before you connect

If nothing works

If the same values work in a desktop mail client, contact Klenty support. If they fail there too, contact your mail provider or IT admin. Include the exact message, the SMTP and IMAP host and port, the SSL setting, your provider and the time of the failed test. Never send the password.

Subject: SMTP/IMAP connection test fails when adding a mailbox

Hi, I can't connect {your-email} through SMTP/IMAP.

Error shown: "SMTP test failed" (also "Imap test failed" / "Please enable SSL")
Time of last attempt: {date, time, timezone}
Provider: {Gmail / Microsoft 365 / hosting company}
SMTP: {host}, port {port}, SSL: {on/off}
IMAP: {host}, port {port}, SSL: {on/off}
Already tried: IMAP enabled, app password, other port and SSL combinations,
same settings in a desktop mail client ({works / fails}).

Which step of the connection is failing, and what does the server log say?

Where Mailneo fits

Mailneo helps with part of this. You can connect Gmail and Outlook by OAuth, which avoids host and port settings, or connect SMTP providers including Amazon SES, SendGrid, Mailgun, Brevo, Postmark, Resend, smtp.com and custom SMTP. For SMTP/IMAP accounts it offers IMAP server auto-discovery and a connection test; see the email accounts documentation. It can't enable IMAP or SMTP AUTH, or open a blocked port, at your mail host.

Common questions

Should I use SMTP/IMAP or the Gmail or Outlook connection?

Use the direct Google or Microsoft connection when your tool offers it and your admin allows it, since it avoids hosts, ports and app passwords. Keep SMTP/IMAP for custom servers and providers without that option.

Why does the test pass but emails fail later?

The connection test only proves the login works. Later failures usually come from provider sending limits, a changed password or a disconnected mailbox, not from the host and port.

Do I need the IMAP details just to send?

Sending uses SMTP, and IMAP is for reading replies. Klenty's article points to reconnecting with the IMAP details included, so fill in both sections rather than testing SMTP alone.

Does fixing the connection help deliverability?

No. A mailbox that connects can still land in spam, which depends on authentication and reputation. See our SMTP glossary entry for background on the protocol.

deliverabilityklentyerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

Klenty: "Email accounts of a different domain cannot be connected"

Klenty shows "Email accounts of a different domain cannot be connected" when the mailbox you add is on a different domain than the email you sign in with. Connect a mailbox on your login's domain, or change the login email to match. This is a Klenty account rule, not a DNS or SMTP fault.

Sohail Hussain|9 min read
Deliverability

Klenty "The domain is blacklisted by your admin." error: what it means

In Klenty, "The domain is blacklisted by your admin." most likely means the prospect's email domain is blocked by a setting inside your own Klenty account, not by a spam blacklist. The message names an admin, so an account admin has to change the rule, or you leave the domain blocked on purpose.

Sohail Hussain|8 min read
Deliverability

Klenty "The email ID does not match": causes and fixes

Klenty shows "The email ID does not match" when the mailbox you authorize in the Google or Microsoft pop-up differs from the address it expected. Sign in as the exact mailbox you are connecting, use a work-domain address, and for Microsoft use the direct connect button instead of SMTP plus IMAP.

Sohail Hussain|9 min read
Deliverability

0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed

Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.

Sohail Hussain|10 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free