How Does Email Work? An In-Depth Look at the Workings of Email

in #steemstem7 years ago (edited)

There’s no denying that email has become an incredibly important part of our daily digital lives. We read and write emails every day without really thinking about it, but it’s interesting to see how the email process actually works and brings your digital letters from Point A to Point B.

What exactly is email?

As you might expect, email is short for electronic mail and was first used in 1971 on the ARPANET computer network, the predecessor of the internet we all know and adore today. Raymond Tomlinson is known as the inventor of the electronic mail. Tomlinson worked as a software developer for the American Department of Defense. [1][2]

businessman-2956974_960_720.jpg
Image source: Pixabay

It was new to send messages between the different terminals that were connected to the same ARPANET mainframe, but Tomlinson did introduce the key element that is used in emails today: the @-symbol. He was the first to use this symbol as a means to address a message to another system.

Fun fact: Ray Tomlinson was rewarded with a prestigious Princess of Asturias Award in 2009 for the introduction of the @-symbol. The man was also inducted into the Internet Hall of Fame by the Internet Society in 2012. [3][4]

_88613503_tomlinson_ap.jpg
Image source: BBC

The email didn’t become popular until 1995 when the internet gained popularity as well and started to become accessible to users and the big audience. Email became a major hit and for all the right reasons: it’s an instantaneous and completely free alternative to regular letters, and its simplicity was another major benefit.

From Point A to Point B

Just like with regular mail, you need to have the address of the recipient before you can send an email. Those addresses always have the form of [user]@[domain]. If you’d like to send me an email, for example, an example email address would be [email protected]. It’s incredibly simple from the user’s point of view, but what exactly happens when you press that ‘Send’ button?

fashion-person-woman-hand.jpg
Image source: Pexels

Your digital mail will be sent to an outgoing mail server via SMTP, short for Simple Mail Transfer Protocol. You can compare SMTP to a local post office, for example. This protocol ensures that your email is able to send to the correct email address and will check if the address given is valid. [5]

The mail server that works via SMTP will communicate with a DNS server, short for Domain Name System. The DNS provides data for domain names used (such as @gmail.com, or a custom domain such as in the example above). Domain names are linked to an IP-address (172.16.254.1, for example). Because it would be hard for us humans to remember those digits, the DNS system takes care of that for us. Think of the DNS as a sort of major telephone book for the internet, only for web and email addresses. [6]

images.png
Image source: Amazon AWS Documentation

When looking up DNS records of an address, you’ll also be able to see where the mail server is in that domain thanks to Mail Exchange (MX) records.

Once the Simple Mail Transfer Protocol has extracted all the necessary information of the DNS and MX records, the server will send your email across the internet to the domain of your recipient. The recipients Mail Transfer Agent will then take control of the email and ensure a good delivery of your message.

illustration-how-email-works.jpg
Image source: Vision Design

A little bit confused? Here’s an analogy with regular mail. Think of the SMTP-server as the Post Office, and the internet as the means of transportation. Your email will be delivered to your recipient’s MTA-server, which is the mailman. The mailman then puts your mail into your (digital) mailbox for you to open and read.

mailbox-1819966_960_720.jpg
Image source: Pixabay

The difference between POP and IMAP

There are plenty of ways to read your emails, although most people just use a web client such as the one given by your internet provider, or popular email providers such as Gmail or Outlook. You can check your emails on every device with access to the internet.

There’s also a possibility to check your emails offline, which means you’ll have to download the emails in their entirety instead of viewing them online. There are a lot of examples of offline mail clients, such as the offline version of Outlook and Mozilla Thunderbird. Mail apps on mobile devices also download your emails for offline viewing.

Office-at-Build-2017-2.png
Image source: Office Blogs

You’ve probably already heard of the terms POP and IMAP if you’ve worked with an offline mail client before. Both are email protocols that are used to ensure you can read and send emails instantaneously. POP and IMAP are used to download your emails stored on the mail server to your email client. In other words, these protocols are responsible for you being able to read your emails.

POP, short for Post Office Protocol, is the simplest protocol of the two. Compare it to checking your virtual mailbox and emptying it. POP downloads all the new emails that you have received and saves them for offline viewing. After the Post Office Protocol is finished downloading your emails, they will be deleted from the mail server in order to reserve space for other emails. [7]

pexels-photo-261706.jpeg
Image source: Pexels

This protocol has a heavy focus on offline viewing because it only works in one direction. If you use POP with your email client, there will be no further communication to the mail server after retrieving your messages. That doesn’t really sound like a major issue, but can be a serious inconvenience for some. If you check your emails on a number of different devices, for example, the lack of communication will result in annoyances. If you’ve read an email on your smartphone, for example, that same email will still be marked as ‘unread’ on your computer because POP only controls your emails locally.

Luckily, an alternative for the Post Office Protocol was created in the form of IMAP. The acronym stands for Internet Message Access Protocol and in contrary to POP, this protocol does offer a two-way communication line between the email client and the mail server. Everything is completely synchronized and emails will also be kept on the mail server itself after downloading them. That means that your emails on all your devices will be perfectly synchronized. [8]

email-protocols.png
Image source: Quest Technologies

Of course, you’ll need to have internet access in order for the IMAP synchronization to work. Luckily, you don’t have to worry in case there’s no internet – you’re still able to access your emails because IMAP also downloads them locally. Any changes in your emails that you might make, will be sent back to the mail server once your internet connection restores.

With IMAP, your emails are both stored locally (if wanted) and in the cloud of your email client. Storage space is not unlimited, so keep that in mind if your mailbox is getting full. When you’re out of storage space, emails will be returned to sender and can’t be delivered. Luckily, emails that only contain text are extremely lightweight, so you likely won’t have to worry about running out of storage space anytime soon.

References

My previous steemSTEM articles

#steemstem #steemiteducation #rebelheart


Enjoyed this post? Feel free to upvote and follow @RebelHeart

Sort:  

Hi RebelHeart!

Thanks for explaining POP and IMAP. I always like getting more informed about different Web protocols.

Have you ever set up your own personal mail server? I've considered it, but I've heard that the security aspect of it can be a nightmare..

Thanks for the feedback! I haven't set up my own personal mail server, because I'm a big fan of Gmail. I do think security might be an issue if you don't check it often. Personally, I've just registered a few domains and I let them forward to my normal mailadress.

Really detailed post! Some more custom made graphics would be nice, but it gives a really nice overview over the topic. I think the email will keep existing for quite a long time, but it will lose a lot of it's importance, due to new, faster and more elegant services .

Thanks for the feedback! Yeah, I'll try to use more graphics in the future. Slack is indeed an elegant alternative to email, but I do agree that emails will stick around for a while.

Hi biw, what do you think will replace email? I agree that there will probably be some newer services, but do you know of any current alternatives?

Slack is another major competitor/alternative to email. Plus all the Slack copies such as Microsoft Teams and that new software thingy by Facebook.

You have things like Trello for organization for example, forms can be filled out on webpages, for private conversations you have stuff like What's App, Discord and much more.

Do you know what... I use email all day every day at work etc. And not once have I known how it really properly works haha! So thanks for the post dude! I feel enlightened! ;)

Thank you for the feedback, glad I could help. ;)

The @OriginalWorks bot has determined this post by @rebelheart to be original material and upvoted it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

Please note that this is a BETA version. Feel free to leave a reply if you feel this is an error to help improve accuracy.

After reading your post, I think, no users need to read any second article about understanding the email. Very detailed and easily explained. No need to be a tech guy to understand your post. Why to go!
What actually happens behind the scene is really amazing! We are sending an email within few seconds but a lot of things are actually happening to complete it, without our knowing. Wonderful.
Keep up the good work.

Thanks for the nice feedback. :)

Thanks for the detailed history and origins of email. It was certainly very informative. Upvoted

Thanks, much appreciated!

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 67241.85
ETH 3492.89
USDT 1.00
SBD 2.68