New: mailX now works inside ChatGPT. Try it →
Free SMTP Tester

SMTP Test: Check Your SMTP Server Connection and Login Online

Enter your SMTP host, port, encryption and login. mailX connects to the server, checks the encryption and the login, and can send a real test email to the address you choose.

Results

  • Free SMTP test
  • Optional test email
  • Credentials not stored

What does this SMTP test check?

Everything that has to work before an app, a CRM or a website can send email.

Server reachable

mailX resolves the host and opens a connection on your port. If it fails, the host or port is wrong, or the port is blocked.

Encryption

The SSL or TLS handshake must succeed with the encryption you selected: SSL on port 465, TLS (STARTTLS) on port 587.

SMTP authentication

The server must accept your username and password, or the API key that a sending service uses as a password.

Real test email

Add a From and a To address and mailX sends a test message through your server, so you can check it arrives.

Step that failed

Each failure tells you whether the connection, the encryption or the login failed.

Any SMTP server

Gmail, Microsoft 365, Yahoo, Zoho, hosting providers, SendGrid, Mailgun, Amazon SES, Brevo or your own server.

How it works

How to test an SMTP server

Five steps to confirm that sending works before you go live.

01

Get the SMTP settings

Find the host, port and login rules of your provider or sending service. The SMTP server finder gives them for 40+ services.

02

Enter host, port and encryption

Use port 587 with TLS (STARTTLS) by default, or 465 with SSL. Avoid port 25: most networks block it for outgoing mail.

03

Enter the credentials

Use the full email address for mailbox providers, with an app password where required. For sending services, use their SMTP username and API key or SMTP key.

04

Optionally send a test email

Fill in From and To to send a real message. Send it to a mailbox you can check, then look at where it lands.

05

Read the result

A success means your app can use the same settings. A failure tells you which step to fix.

What an SMTP test tells you

SMTP (Simple Mail Transfer Protocol) is how apps and email clients hand messages to a server for delivery. To send, three things must work in order: the connection to the server, the encryption, and the authentication. The test checks each step and stops at the first failure, so you know where to look.

Ports and encryption must match. Port 587 is the submission port and switches to encryption with STARTTLS. Port 465 uses implicit SSL/TLS from the first byte. Port 25 is for server-to-server delivery and is blocked for outgoing mail by most ISPs and cloud providers. Some sending services also offer port 2525 when the standard ports are blocked.

A successful login proves your settings are right. It does not prove your emails will reach the inbox. That depends on SPF, DKIM and DMARC for your domain, and on your sending reputation. Send the test email to a mailbox you control to see where it lands.

Settings that pass for most providers:

Port 587 + TLS (STARTTLS)
Port 465 + SSL
Port 2525 + TLS, with sending services that offer it

What the test returns:

Connection successful: your app can log in with these settings
Connection successful, email sent: the test message was accepted
Authentication failed: the server refused the login
SSL failed: wrong encryption for this port
Connection failed: wrong host or port, or a blocked port
General error: an unexpected problem, run the test again

Why your SMTP test fails

The usual causes, by the step that failed.

Authentication failed with the right password

Gmail, Yahoo, AOL and iCloud refuse your normal password in apps: use an app password. Microsoft 365 needs SMTP AUTH enabled for the mailbox, and from the end of December 2026 Microsoft turns off password authentication for SMTP AUTH by default, so the test only works if your admin turns it back on. Outlook.com requires OAuth2.

Wrong credentials for a sending service

SendGrid expects the username apikey and your API key as the password. Brevo needs an SMTP key. Amazon SES needs SMTP credentials generated for the right region.

SSL failed

The port and the encryption do not match. Use 587 with TLS or 465 with SSL.

Connection failed or timed out

The host is wrong, or the port is blocked by your network or your cloud provider. Port 25 is the usual victim. Try 587, or 2525 with a sending service.

Test email not received

The server accepted the message but it was filtered or rejected later. Check the spam folder, then check SPF, DKIM and DMARC for the From domain.

From address refused

Many servers only let you send from the address or domain you authenticated with. Use a From address the account is allowed to send as.

Is it safe to test SMTP with my password?

The test needs real credentials, because authentication is the step that fails most often. mailX uses them to run the test and does not store them.

Use an app password or a dedicated SMTP key when your provider offers one: you can revoke it at any time without touching your main password. For a production account, a separate test key is the cleanest option.

You can also check the connection yourself from a terminal with OpenSSL. On port 465, the server should answer with a line starting with 220. With -starttls smtp, OpenSSL reads that greeting itself: type EHLO test and the server should answer with lines starting with 250.

Test port 587 with STARTTLS:

openssl s_client -connect smtp.gmail.com:587 -starttls smtp -crlf -quiet

Test port 465 with SSL:

openssl s_client -connect smtp.gmail.com:465 -crlf -quiet

Reading your SMTP test results

What each result means and what to do next.

Your SMTP works. Will your emails land in the inbox?

Sending is only half the job. Check that SPF, DKIM and DMARC pass for your domain, in one free test.

SMTP Test FAQ

SMTP test basics

How do I test my SMTP server?
Enter the SMTP host, port, encryption, username and password in the mailX SMTP test. It connects, checks the encryption and tries to log in. Add a From and To address to send a real test email.
What does an SMTP checker test?
It checks that the server is reachable on your port, that the SSL or TLS encryption works with that port, and that the server accepts your credentials. With the optional test email, it also checks that the server accepts a message.
Does the SMTP test send an email?
Only if you fill in both the From and To fields. Without them, mailX tests the connection and the login without sending anything.

Ports and encryption

Which SMTP port should I test?
Start with 587 and TLS (STARTTLS). Use 465 with SSL if your provider requires it. Port 25 is blocked for outgoing mail on most networks, and 2525 works with sending services that offer it.
Why does port 25 fail?
Most ISPs and cloud providers block outgoing connections on port 25 to stop spam from compromised machines. Use 587 or 465 to submit email from an app.

Errors

Why does my SMTP test say authentication failed?
The server refused the login. Usual causes: a normal password where an app password is required, SMTP AUTH disabled for a Microsoft 365 mailbox, a provider that requires OAuth2 such as Outlook.com, or an API key in the wrong field for a sending service.
The test passed but my email went to spam. Why?
A working SMTP login only proves the server accepts your message. Inbox placement depends on SPF, DKIM and DMARC for the From domain, on your reputation and on the content. Check your authentication with the SPF, DKIM and DMARC checker.

Security

Does mailX store my SMTP password?
No. The credentials are used to run the test and are not stored. Use an app password or a dedicated SMTP key so you can revoke it at any time.