SMTP stands for Simple Mail Transfer Protocol, the standard set of rules used to send email across the internet. Whenever a message leaves an email program, a website form or an online store, SMTP carries it from the sender to an outgoing mail server, and from that server to the recipient’s. Most people never see it, because their email account handles it quietly. It surfaces when something has to be configured by hand, such as a website that sends notifications, a printer that emails scans, or a new account set up in an email program, and when a business finds its messages are not arriving.
In short
- The standard every email is sent with.
- The SMTP server is the outgoing mail server.
- IMAP and POP3 collect mail; SMTP sends it.
- Websites need it set up properly to be trusted.
How a message travels
Sending one email involves several short conversations between machines.
- Your program or website connects to an SMTP server and proves it is allowed to send, usually with a username and password.
- It hands over the message, with the sender, the recipient and the content.
- The server looks up where to deliver it by reading the recipient domain’s MX records, part of its DNS records.
- It passes the message to the recipient’s server, which decides whether to accept it, file it as spam or refuse it.
If the receiving server is busy or temporarily refuses the message, the sending server does not give up at once. It keeps the message in a queue and tries again at intervals, sometimes for several days, before returning it as undelivered. That is why an email can arrive hours late without anybody having done anything wrong, and why a bounce sometimes appears long after the message was sent.
The recipient then reads it with IMAP, POP3 or a webmail page, none of which is SMTP’s job. SMTP only moves mail; it does not store it or show it.
Servers, ports and settings
When a program or plugin asks for SMTP settings, it wants a handful of details from whoever provides the email account.
- Server name. The address of the outgoing mail server, supplied by your email provider.
- Port. The numbered door the connection uses. Port 587 is the common choice for sending, port 465 is the encrypted alternative, and port 25 is for server to server traffic and is often blocked on ordinary connections.
- Encryption. TLS, so the password and the message are not sent in plain text.
- Username and password. Often the mailbox’s own login, or a separate app password created for the purpose when the account uses two-step verification.
Wrong details produce errors that name the problem: a refused connection usually means the wrong port or a blocked one, and an authentication error means the login was rejected.
Why website forms need it
Many websites, WordPress among them, send form notifications and order emails through the web server’s built-in mail function unless somebody changes it. That function sends without logging in to a real mail account, often from an address on a domain that has not authorised the server to send for it.
Mailbox providers notice. A message claiming to come from your domain, sent by a server your domain never approved, looks exactly like a forgery, so it goes to spam or disappears. The result is a contact form that appears to work while inquiries never reach anybody.
The fix is to route the website’s mail through a proper SMTP account: the business mailbox itself, or a sending service. A plugin or setting holds the SMTP details, and every message is then sent with a login and from a server your domain recognises.
SMTP relay services
Businesses that send a lot of automatic email, such as receipts, shipping updates and password resets, often use an SMTP relay service rather than a normal mailbox. These companies run sending servers with an established reputation, handle bounces and complaints, and report on what was delivered.
They suit transactional email in particular, where a missing message costs a sale or a support call. Whichever route is used, the sending service must be listed in your domain’s SPF record and set up with DKIM, or the authentication that protects your domain will count its messages as failures.
When it goes wrong
Most SMTP problems fall into a few patterns.
- Messages go to spam. The sending server is not authorised for your domain, or the domain has no authentication at all.
- Nothing is sent. The port is blocked, the password changed, or the account requires an app password.
- Messages bounce. The recipient address is wrong, or the receiving server refused the sender.
- Some arrive, some do not. A sending limit on the account was reached, so later messages were held back.
The bounce message itself usually explains which, in a line that begins with a three-digit code. Read it before changing anything. A code starting with 4 means a temporary problem that may clear itself; one starting with 5 means a permanent refusal.
Words you will hear
- SMTP. Simple Mail Transfer Protocol, the standard for sending.
- Outgoing server. The SMTP server an account sends through.
- IMAP and POP3. The standards for collecting mail from a mailbox.
- TLS. The encryption that protects the connection.
- App password. A separate password made for one program to send mail.
- SMTP relay. A service that sends email on your behalf.
Send a test inquiry through your own website today, to an address outside your business, and see where it lands. If it reaches spam or does not arrive at all, ask whoever runs the site which SMTP route the form uses, and move it onto an authenticated account before the next real customer writes in.
Questions we get
More about smtp
What does SMTP stand for?
What is an SMTP server?
What is the difference between SMTP, IMAP and POP3?
Which SMTP port should I use?
Why do emails from my website not arrive?
What is an SMTP relay service?
Is SMTP secure?
Related terms
Email deliverability
Deliverability is whether your email reaches the inbox or the spam folder. It is decided by your sending reputation, not by how well the email is written.
SPF record
An SPF record is a DNS entry listing the servers allowed to send email for your domain. One missing entry and your own invoices start landing in spam.
DNS records
DNS records are the settings telling the internet where to find your website and your email, which is why one wrong line can take both offline at once.