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 Hussain9 min readShort 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.
| Message | Likely cause | First thing to check |
|---|---|---|
SMTP test failed | Wrong port, encryption, username or password on the outgoing server | Port and SSL toggle, then login |
Imap test failed | Same for the incoming server, or IMAP is switched off on the mailbox | IMAP enabled, IMAP port |
Wrong SMTP Host | Typo, wrong server, or a server that doesn't answer on that port | Host spelled exactly as your provider gives it |
Wrong IMAP Host | Same, for the incoming server | Host and IMAP port |
Please enable SSL | The server expects encryption and the toggle is off, or the toggle doesn't match the port | SSL 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
- Open the form where you add a mailbox through SMTP/IMAP (the exact menu names differ by tool and version).
- If the tool tries to fill in settings automatically and the test fails, switch to the manual or advanced fields.
- 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.
- 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.
| Port | Protocol | Encryption | Typical toggle |
|---|---|---|---|
| 465 | SMTP | Implicit SSL/TLS | SSL on |
| 587 | SMTP | STARTTLS | SSL off, or "TLS" if offered |
| 993 | IMAP | Implicit SSL/TLS | SSL on |
| 143 | IMAP | STARTTLS | SSL off, or "TLS" if offered |
| 25 | SMTP | Server-to-server | Avoid; 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.
| Provider | SMTP host | IMAP host |
|---|---|---|
| Gmail / Google Workspace | smtp.gmail.com | imap.gmail.com |
| Microsoft 365 | smtp.office365.com | outlook.office365.com |
| Zoho Mail (US data center) | smtp.zoho.com | imap.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
- Use the full email address as the username unless your provider says otherwise.
- 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.
- 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.
Explore: Email Deliverability
Related Articles
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.
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.
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.
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.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free