What Is SMTP? How Email Actually Gets Delivered
A short video on how SMTP carries a message from your app to the inbox, step by step, and what the reply codes along the way mean.
longPublished Rasket
You click send and a second later it's in someone's inbox. Here's how SMTP moves it there, step by step, plus what the reply codes mean and which settings to use.
Chapters
Transcript
You click send, and a second later the email is in someone's inbox. The rules that move it there are called SMTP.
SMTP means Simple Mail Transfer Protocol. It's how mail servers hand an email to each other, like post offices passing a letter along.
Step one is submission. Your app logs in to its own outgoing server and hands over the email, on port 587, or 465.
Step two is relay. Your server looks up the MX record in the recipient's DNS, to find their mail server, and passes the email over on port 25.
At every handover, the server replies with a code. Two fifty means it accepted the email. It does not mean the inbox.
Step three happens after that. The receiving server runs its spam filters and picks a folder: the inbox, spam, or a tab.
Step four: the recipient's mail app fetches the email with IMAP, and they finally read it.
If a reply starts with 4, it means not now, and your server tries again later. If it starts with 5, it means no, and the email bounces.
SMTP never checks who really sent an email. So set up SPF, DKIM and DMARC on your domain before you send.
And when an app asks for SMTP settings, use port 465, and an API key from your provider, not your normal password.
Learn more at www.rasket.com.
More videos
Transactional vs Marketing Email: What's the Difference?1:17
What Is an Email Suppression List? (And How to Use It)1:16
Double Opt-In Email: How It Works and Why You Need It1:14
