{"id":207326,"date":"2021-05-13T15:59:00","date_gmt":"2021-05-13T13:59:00","guid":{"rendered":"https:\/\/spotler.com\/blog\/what-is-smtp"},"modified":"2026-06-05T16:27:12","modified_gmt":"2026-06-05T14:27:12","slug":"what-is-smtp","status":"publish","type":"blog","link":"https:\/\/spotler.com\/en-au\/blog\/what-is-smtp","title":{"rendered":"What is the Simple Mail Transfer Protocol (SMTP)?"},"content":{"rendered":"<p><strong>To deliver emails from A to B, virtually all emails worldwide use SMTP. This Simple Mail Transfer Protocol ensures that all mail servers speak the same &#8216;language&#8217; to understand each other when transferring messages. In this article, we&#8217;ll explain how this works.<\/strong><\/p>\n<h2 class=\"wp-block-heading\">What is SMTP?<\/h2>\n<p>The&nbsp;<strong>Simple Mail Transfer Protocol<\/strong>&nbsp;is a relatively simple &#8211; hence the name &#8211; text-based protocol for sending emails. It specifies the message&#8217;s sender, recipient(s), sending details, and content. This data lets the receiving email client know who to send the message to and what to display to them. Although SMTP is not the only way to send emails, it is the&nbsp;<em>de facto<\/em>&nbsp;standard for email communication.<\/p>\n<h2 class=\"wp-block-heading\">One language for all email traffic<\/h2>\n<p>The fact that SMTP is the standard for email delivery ensures that almost all mail servers can communicate with one another. As a result, you can assume that an email you send to a German customer will arrive in the same fashion as an email you send to someone in the UK.\u00a0<\/p>\n<p>However, SMTP assumes the recipient is always online. Since most customers aren&#8217;t online 24\/7, SMTP needs some assistance. POP3 and IMAP ensure the recipient can retrieve the email (Gmail, Outlook, etc.). With SMTP, you\u00a0<strong>upload<\/strong>\u00a0your email to &#8216;the cloud&#8217;, where POP3 or IMAP\u00a0<strong>downloads<\/strong>\u00a0that email.<\/p>\n<figure class=\"wp-block-image size-large border1px-blue borderradius20\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-1024x576.webp\" alt=\"\" class=\"wp-image-250615\" srcset=\"https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-1024x576.webp 1024w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-300x169.webp 300w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-768x432.webp 768w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-1536x864.webp 1536w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-767x432.webp 767w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-338x190.webp 338w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-44x25.webp 44w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp-817x460.webp 817w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_smtp.webp 1672w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<h2 class=\"wp-block-heading\">The&nbsp;technical operation&nbsp;of SMTP<\/h2>\n<p>SMTP is a protocol that operates in a&nbsp;<strong>client-server model<\/strong>. The client&nbsp;<em>C<\/em>&nbsp;takes the initiative to communicate with the server&nbsp;<em>S<\/em>, which is always available and reactive. The client is the sending party, and the server is the receiving party. The communication between the two looks somewhat like this:<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-88496ea8a8d8543305b8180a979b66a6\">Example of the SMTP&nbsp;client-server communication<\/h3>\n<p>Suppose you want to deliver an email to a client who uses Gmail. The client will connect to smtp.gmail.com. After establishing the connection via telnet (telnet smtp.gmail.com 587), the server (S) opens with a greeting:<\/p>\n<pre class=\"wp-block-code\"><code><em>S &lt;<\/em>\u00a0220 smtp.gmail.com ESMTP\n<em>C ><\/em>\u00a0HELO spotler.com\n<em>S &lt;<\/em>\u00a0250 Hello<\/code><\/pre>\n<p>Next, the client introduces itself by telling who the sender is. The server checks if the sender is OK.<\/p>\n<pre class=\"wp-block-code\"><code><em>C &gt;<\/em>&nbsp;MAIL FROM: you@yourcompany.com<br><em>S &lt;<\/em>&nbsp;250 Ok<\/code><\/pre>\n<p>Now that the server has approved the sender&#8217;s address, the client tells who the recipient is. Again, the server approves this.<\/p>\n<pre class=\"wp-block-code\"><code><em>C &gt;<\/em>&nbsp;RCPT TO: yourcustomer@gmail.com<br><em>S &lt;<\/em>&nbsp;250 Ok<\/code><\/pre>\n<h4 class=\"wp-block-heading\"><strong>The email content<\/strong><\/h4>\n<p>Now that the server is familiar with the client, the sender, and the recipient, the client can start sharing data. This data consists of the subject line, the sender, the recipient, and the message&#8217;s content. It looks something like this:<\/p>\n<pre class=\"wp-block-code\"><code><em>C &gt;<\/em>&nbsp;DATA<br><em>S &lt;<\/em>&nbsp;354 Enter message, finish with '.' on a line by itself<br><em>C &gt;<\/em>&nbsp;SUBJECT: Your order is confirmed!<br><em>C &gt;<\/em>&nbsp;From: you@yourcompany.com<br><em>C &gt;<\/em>&nbsp;To: yourcustomer@gmail.com<br><em>C &gt;<\/em><br><em>C &gt;<\/em>&nbsp;Contents of e-mail<br><em>C &gt;<\/em>&nbsp;.<\/code><\/pre>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-8e32f413aa60a02f8f6901e723075ccb\">Closing and terminating the SMTP connection<\/h3>\n<p>After transferring the data, the client&#8217;s job is done. After receiving a 250 OK response from the server, the connection terminates, and the email queues for delivery.<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-991fcb0b3219b9b18e7039abd7db0362\">The analogy of the mailman<\/h3>\n<p>You&#8217;ll notice two senders and recipients in the example above (&#8216;MAIL FROM&#8217; &amp; &#8216;RCPT TO,&#8217; versus &#8216;From&#8217; &amp; &#8216;To&#8217;). This situation is similar to a regular envelope, where a mailman only sees the envelope (&#8216;MAIL FROM&#8217; &amp; &#8216;RCPT TO&#8217;), and the addressee reads the letter (&#8216;From&#8217; &amp; &#8216;To&#8217;). The mailman doesn&#8217;t check the contents of the letter. That poses a problem. What if the envelope has a different sender on it than the letter itself?<\/p>\n<h2 class=\"wp-block-heading\">Limitations&nbsp;of SMTP<\/h2>\n<p>SMTP is somewhat insecure and prone to spam. Since the old-fashioned protocol doesn&#8217;t check the validity of the email per se, it is possible to fake your way to the customer&#8217;s inbox. You can use a different name in the MAIL FROM and the &#8216;From&#8217; header, otherwise known as spoofing. Over the years, however, security measures were developed to protect both the MAIL FROM and the &#8216;From&#8217;-header.<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-2756b633e5c69a7d33b171279918f09e\">SPF &amp; DKIM<\/h3>\n<p>To protect their MAIL FROM address, domain owners can use the Sender Policy Framework (SPF). With SPF in place, the servers can now check if the MAIL FROM is valid. It checks if the sending IP address is authorised to send emails on behalf of the proposed sender.<\/p>\n<p>DKIM, on the other hand, protects the From header. Using a cryptographic signature, DKIM ensures the sender address and email content are valid. It ensures that the recipient sees what they&#8217;re supposed to.<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-948a3f92aa6321e200aa4bdd79804012\">DMARC<\/h3>\n<p>With SPF and DKIM in place, you can ensure that your domain is protected. With DMARC, you prevent domain spoofing for good. DMARC specifies what should happen to emails that fail the SPF and DKIM checks.<\/p>\n<h3 class=\"wp-block-heading has-blue-color has-text-color has-link-color wp-elements-6e96a9d318f4691a14cd1ba6699c0e65\">ESMTP<\/h3>\n<p>All these measures would not have been possible if SMTP hadn&#8217;t extended its functionality. To have more functionality than &#8216;just send and receive emails,&#8217; ESMTP (E for Extended) was created in 1995. This variant of SMTP offers the possibility of email authentication and performance improvement.<\/p>\n<figure class=\"wp-block-image size-large border1px-blue borderradius20\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"420\" src=\"https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-1024x420.webp\" alt=\"\" class=\"wp-image-250628\" srcset=\"https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-1024x420.webp 1024w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-300x123.webp 300w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-768x315.webp 768w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-1536x630.webp 1536w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-1920x787.webp 1920w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-767x315.webp 767w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-463x190.webp 463w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-44x18.webp 44w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender-817x335.webp 817w, https:\/\/spotler.com\/wp-content\/uploads\/2021\/05\/sendpro_sender.webp 1958w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<h2 class=\"wp-block-heading\" id=\"summarized-title\">Summarised<\/h2>\n<p>SMTP is one of the oldest, but still the most common, email delivery methods. Though the protocol has made massive improvements over the years, it&#8217;s not perfect from the start. You must authenticate your domain, improve your IP reputation, and ensure the path to the inbox is as fast and secure as possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SMTP is used in sending and receiving email. But what is it exactly, how does it works and what are the limitations? We give you an answer!<\/p>\n","protected":false},"author":46,"featured_media":207328,"template":"","cat_industry":[2668,2663],"cat_topic":[2671],"class_list":["post-207326","blog","type-blog","status-publish","has-post-thumbnail","hentry","cat_industry-b2b-en-au","cat_industry-b2c-en-au","cat_topic-deliverability-en-int"],"acf":[],"_links":{"self":[{"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/blog\/207326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/users\/46"}],"version-history":[{"count":4,"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/blog\/207326\/revisions"}],"predecessor-version":[{"id":250644,"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/blog\/207326\/revisions\/250644"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/media\/207328"}],"wp:attachment":[{"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/media?parent=207326"}],"wp:term":[{"taxonomy":"cat_industry","embeddable":true,"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/cat_industry?post=207326"},{"taxonomy":"cat_topic","embeddable":true,"href":"https:\/\/spotler.com\/en-au\/wp-json\/wp\/v2\/cat_topic?post=207326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}