
Email is a fundamental part of our daily lives, and understanding how it works is essential for effective communication. Email is a form of electronic communication that allows users to send and receive messages electronically.
Emails are sent through a network of servers and routers, which forward the message to its intended recipient. This process is made possible by the Simple Mail Transfer Protocol (SMTP).
The first email was sent in 1971 by Ray Tomlinson, who also invented the "@" symbol to separate the user name from the host name.
What Is Email?
Email is a digital messaging system that allows users to send and receive messages electronically. It's like sending a letter, but instead of using a mailbox and postal service, you use your computer or phone.
Emails are made up of two main parts: the sender and the recipient, who can be individuals or organizations. The sender composes a message and adds the recipient's email address to send it to them.
Emails can be sent to a single recipient or to multiple recipients at once. This is called a mass email.
Here's an interesting read: Azure Send Email
Email Protocols
Email protocols are the backbone of email communication, allowing your email client to send and receive emails. They're like the messengers that help your emails reach their destination.
There are three main protocols: SMTP, POP, and IMAP. SMTP handles the delivery of emails, while POP and IMAP focus on accessing emails. SMTP is responsible for transferring your email from your email client to an SMTP server, which then relays it to the recipient's receiving mail server.
Here's a brief overview of each protocol:
IMAP and POP are often compared, with IMAP being seen as a more advanced version of POP. While POP only retrieves specific messages and doesn't leave a copy on the server, IMAP synchronizes all messages on the mail server with the email client.
What Is Smtp?
SMTP is a protocol that handles the delivery of emails, transferring them from your email client to an SMTP server.
The SMTP server then uses the SMTP protocol to authenticate your message and ferry it to your recipient's receiving mail server.
An MTA uses the SMTP protocol to relay your message onward to a Message Delivery Agent, also known as a mailbox server or receiving mail server.
Your recipient can then use the IMAP protocol to retrieve your message from the MDA to their MUA.
Protocols
Email protocols are the backbone of how email works. They're the rules that govern how email is sent, received, and accessed.
SMTP (Simple Mail Transfer Protocol) is the protocol responsible for delivering emails. It transfers your email from your email client to an SMTP server, which then authenticates your message and sends it to your recipient's receiving mail server.
To retrieve email, a supporting protocol must be used. There are two main protocols: POP3 and IMAP.
POP3 (Post Office Protocol) is a simple protocol that allows you to download emails from a mail server to your local machine. It's like a one-way street, where you download your emails and then delete them from the server.
IMAP (Internet Message Access Protocol) is a more advanced protocol that allows you to access your emails on the server. It's like a two-way street, where you can access your emails from any machine and keep them on the server.
See what others are reading: Print Emails
Here's a comparison of POP3 and IMAP:
The POP3 server is extremely simple and acts as an interface between the email client and the text file containing your messages. It uses commands like USER, PASS, QUIT, LIST, RETR, DELE, and TOP to manage your emails.
IMAP, on the other hand, is a more advanced protocol that allows you to organize your emails into folders and keep them on the server. It's designed to make it easy to access your emails from any machine, regardless of which machine you use.
Worth a look: How to Stop Sextortion Emails
The Smtp Server
The SMTP server is the backbone of email delivery. It handles the sending of emails from your email client to the recipient's receiving mail server.
When you send an email, your email client interacts with the SMTP server to handle the sending. The SMTP server on your host may have conversations with other SMTP servers to deliver the email.
The SMTP server uses a program called sendmail to do the actual sending. This program will periodically try to resend messages in its queue if it can't connect with the recipient's SMTP server.
If the SMTP server at your host can't connect with the recipient's SMTP server, the message will go into a queue. Sendmail will try to resend the message every 15 minutes, and after four hours it will send a notification to the sender. If the message is still undeliverable after five days, sendmail will return the mail to the sender.
The SMTP server understands very simple text commands, including HELO, EHLO, MAIL FROM:, RCPT TO:, DATA, RSET, QUIT, HELP, VRFY, EXPN, and VERB.
Here are some of the most common SMTP commands:
- HELO - introduce yourself
- EHLO - introduce yourself and request extended mode
- MAIL FROM: - specify the sender
- RCPT TO: - specify the recipient
- DATA - specify the body of the message (To, From and Subject should be the first three lines.)
- RSET - reset
- QUIT - quit the session
- HELP - get help on commands
- VRFY - verify an address
- EXPN - expand an address
- VERB - verbose
How Email Works
Email is a complex process, but it all starts with a simple email client like Gmail. You hit send, and your message is transferred to an MTA, like Mailgun's SMTP server, using the SMTP protocol.
The MTA authenticates your email and preps it for transfer, communicating with the MDA using the SMTP protocol and ferrying your message to the MDA. Your email now waits in the receiving mail server for your subscriber to retrieve it.
A server is just a computer whose job is to serve, and SMTP stands for Simple Mail Transfer Protocol, a set of rules for transmitting emails. The SMTP server doesn't know where to send the email, it just knows the email address of the recipient.
The domain name is the part that comes after the "@" in an email address, and the IP address is the actual address where the letter is supposed to be delivered. The SMTP server knows the domain name of the recipient and needs to know the IP address, so it contacts a DNS server to get the IP address corresponding to the domain.
The DNS server is like a big address book of the internet, and it helps the SMTP server find the correct IP address. The router will take the IP address and find the fastest path to the receiver's SMTP server, hopping over multiple routers across the world.
A different take: How to Transfer Email Accounts
Here's a step-by-step breakdown of the email journey:
- The client sends the email to an SMTP server
- The SMTP server contacts the DNS server to get the IP address of the recipient's domain
- The router finds the fastest path to the receiver's SMTP server
- The sender SMTP server and receiver SMTP server establish a connection
- The email is transferred to the receiver's SMTP server
The POP3 and IMAP servers are two types of email servers that allow you to access your email from anywhere. The POP3 server maintains a collection of text files, one for each email account, and the IMAP server allows you to organize your email into folders and keep them on the server.
Here are some common POP3 commands:
- USER - enter your user ID
- PASS - enter your password
- QUIT - quit the POP3 server
- LIST - list the messages and their size
- RETR - retrieve a message, pass it a message number
- DELE - delete a message, pass it a message number
- TOP - show the top x lines of a message, pass it a message number and the number of lines
Email Clients and Servers
Email clients are software programs that help you manage your email. They usually do four main things: show you a list of messages, let you read and reply to messages, let you create and send new messages, and let you add attachments.
Most email clients connect to a POP3 or IMAP server to retrieve your email. POP3 servers store messages in text files, one for each email account. When you check your email, your client connects to the POP3 server using port 110 and issues commands to bring copies of your email messages to your local machine.
The POP3 protocol is simple, allowing you to download messages from the server and delete them. However, this can be a problem if you want to access your email from multiple machines. IMAP servers, on the other hand, store messages on the server and allow you to access them from anywhere. This is because IMAP allows you to organize your mail into folders, which live on the server, and search your email on the server machine.
Here are the most common POP3 commands:
- USER - enter your user ID
- PASS - enter your password
- QUIT - quit the POP3 server
- LIST - list the messages and their size
- RETR - retrieve a message, pass it a message number
- DELE - delete a message, pass it a message number
- TOP - show the top x lines of a message, pass it a message number and the number of lines
Clients
Email clients are software programs that help you manage your email messages. They're the programs you use to read, write, and organize your emails.
You can use a stand-alone email client like Microsoft Outlook or Eudora, or a web-based email client like Yahoo or Hotmail. No matter which type you use, it generally does four things: shows you a list of messages in your mailbox, lets you read the body of an email message, lets you create and send new messages, and lets you add attachments to messages.
Some email clients are installed on your computer, while others are accessed through a web page. Installed clients like Microsoft Outlook allow you to read and write emails offline, while web-based clients like Yahoo require an internet connection to use.
Here are the four main functions of an email client:
- Shows you a list of all of the messages in your mailbox by displaying the message headers.
- Lets you select a message header and read the body of the email message.
- Let's you create new messages and send them.
- Lets you add attachments to messages you send and save the attachments from messages you receive.
POP3 and IMAP Servers
The POP3 and IMAP servers are the backbone of email communication, and understanding how they work is essential for navigating the world of email clients and servers.
The POP3 server maintains a collection of text files, one for each email account, and appends new messages to the bottom of the recipient's file. It uses port 110 and requires an account name and password to access.
Your email client connects to the POP3 server and issues a series of commands to bring copies of your email messages to your local machine. Generally, it will then delete the messages from the server unless you've told the email client not to.
The most common POP3 commands include USER, PASS, QUIT, LIST, RETR, DELE, and TOP. These commands allow you to interact with the POP3 server and manage your email messages.
Here are the most common POP3 commands:
- USER - enter your user ID
- PASS - enter your password
- QUIT - quit the POP3 server
- LIST - list the messages and their size
- RETR - retrieve a message, pass it a message number
- DELE - delete a message, pass it a message number
- TOP - show the top x lines of a message, pass it a message number and the number of lines
IMAP, on the other hand, is a more advanced protocol that allows your mail to stay on the email server. You can organize your mail into folders, and all the folders live on the server as well.
The IMAP server uses port 143 and allows you to issue a set of text commands to list all the folders on the server, list all the message headers in a folder, get a specific email message from the server, delete messages on the server, or search through all of the emails on the server.
One of the main advantages of IMAP is that it allows you to access your email from any machine, and regardless of which machine you use, you have access to all of your mail in all of your folders.
Email Security and Etiquette
Email security and etiquette are crucial for protecting your digital identity and building positive relationships with others online.
Using a strong password and enabling two-factor authentication can significantly reduce the risk of email hacking.
Always verify the sender's email address before clicking on links or downloading attachments, as phishing scams can be disguised as emails from trusted sources.
Security: How It Works
Email security is a complex process, but it's based on a simple principle: authenticity. The moment an email is sent, a message is routed from server to server via the Simple Mail Transfer Protocol until it makes its way from the client to the email recipient's email server.
To ensure emails are delivered to the right person, the SMTP checks the postage address to figure out where to send the mail. Unfortunately, the SMTP doesn't understand how to read the domain name, so it needs a computer-friendly IP address to locate and deliver the message.
The SMTP contacts the DNS server to translate the recipient's email address to an IP address. This is a crucial step in email security, as it prevents emails from being sent to the wrong person.
The DNS server uses a Mail eXchanger (MX) record to find the address of the recipient. This record specifies the mail server of a domain name, and it's essential for email delivery.
Once the SMTP has all the necessary information, it sends the message from its server onto the email recipient's MTA server. This is where the message is stored and made available to the recipient.
The receiving server uses protocols like POP or IMAP to store and retrieve the message, but this is a topic for another time. For now, let's focus on the security measures in place to prevent email spoofing and phishing.
Attachments
Attachments are a convenient way to share files via email, but they can also pose a security risk if not handled properly.
Attachments can include a wide variety of file types, such as word processing documents, spreadsheets, sound files, and even pieces of software.
In the early days of email, attaching files was a laborious process that required using a program called uuencode.
Uuencode converted binary files into text characters, which could then be included in email messages.
This process involved extracting 6 bits at a time from the binary file and adding 32 to the value of those bits to create a text character.
The result was an encoded version of the original binary file that contained only text characters.
You would then run uuencode yourself and paste the uuencoded file into your email message.
This process was time-consuming and error-prone, but it was the only way to share files via email at the time.
Discover more: Emailing a Text
Etiquette
Etiquette is a crucial aspect of email communication, and it's essential to get it right to avoid misunderstandings and maintain a professional tone.
Always include a clear subject line that accurately reflects the content of the email, just like in the example where a clear subject line "Meeting Invitation" helps the recipient understand the purpose of the email.
Use a formal greeting and sign-off, such as "Dear [Recipient]" and "Best regards", to show respect for the recipient's time.
Keep your email concise and to the point, avoiding unnecessary information that can make the email look cluttered and unprofessional.
Use a professional tone and avoid using jargon or overly technical language that might confuse the recipient.
Proofread your email carefully before sending it out to ensure it's free of typos and grammatical errors, just like in the example where a single typo can make a big difference in the recipient's perception of the sender.
Email Terminology
Email Terminology is an essential part of understanding how email works.
CC stands for Carbon Copy, used to send a copy of the email to recipients who don't need to take action but should be aware of the conversation.
BCC stands for Blind Carbon Copy, used to send a copy of the email to recipients without revealing their email addresses to the other recipients.
Reply-all is a button that sends the email to the entire group of recipients, including the sender and anyone who has been CC'd or BCC'd.
The subject line is the brief summary of the email's content, appearing in the inbox and helping recipients decide whether to open the email.
Attachments are files sent with the email, which can be images, documents, or other types of files.
Worth a look: Emailing a Large File
Ultimate Guide by Namecheap
Email works by sending messages between computers using a standardized format. This format allows messages to be delivered efficiently across the internet.
Email clients like Microsoft Outlook and Mozilla Thunderbird are used to compose, send, and receive emails. They also enable users to organize their emails into folders and labels for easy retrieval.
Email servers, such as those provided by Namecheap, host and manage email accounts. They ensure that emails are delivered to the correct recipient and store sent emails in the sender's account.
Email protocols like POP3 and IMAP allow email clients to retrieve emails from the server. This enables users to access their emails from multiple devices and locations.
Email encryption methods, such as SSL/TLS, secure email communication by protecting data in transit. This ensures that sensitive information remains confidential and protected from interception.
Frequently Asked Questions
What is an example of a work email?
A work email is a formal message sent to a professional contact, typically introducing oneself and expressing interest in a potential collaboration or partnership. It usually includes a brief introduction, a mention of how you came across the recipient, and a clear statement of your intentions.
Featured Images: pexels.com


