Email

Derek Bridge

Department of Computer Science,
University College Cork

Email

Aims:

The challenge

Mailboxes and mail agents

Sending an email

[Diagram of a user sending an email by directly logging in to her email server.]

Sending directly from the email server

Sending an email

[Diagram of a user sending an email from her PC or laptop to her local SMTP server, which delivers it.]

Sending from the user's PC or laptop over a LAN using, e.g. MS Outlook, Outlook Express, Eudora, Thunderbird, Apple Mail

Sending an email

[Diagram of a user sending an email from her PC or laptop to her local SMTP server, which delivers it.]

Webmail (e.g. Squirrelmail, hotmail, gmail): sending from the user's PC or laptop over the Internet using a web browser

Simple Mail Transfer Protocol (SMTP)

Accessing and reading emails

Reading directly on the email server

[Diagram of a user reading his email by directly logging in to his SMTP server.]

Accessing and reading emails

Downloading to the user's PC or laptop over a LAN to, e.g. MS Outlook, Outlook Express, Eudora, Thunderbird, Apple Mail

[Diagram of a user reading his email by using POP or IMAP to download it to his PC or laptop from his email server.]

Accessing and reading emails

Webmail (e.g. Squirrelmail, hotmail, gmail): fetching a web page of emails over the Internet using a web browser

[Diagram of a user reading his email by accessing his email server using a web browser.]

The Post Office Protocol (POP) and the Internet Message Access Protocol (IMAP)

Email addresses

An email address comprises three parts:

  1. The name or numeric IP address of the host where the user's mailbox resides:
    • his/her local SMTP server, not his/her PC or laptop
    • DNS lets us use a different name, e.g. cs.ucc.ie not csmail.ucc.ie. Why?
  2. The @ symbol
  3. A user identifier:
    • Typically, his/her login id on the local SMTP server
    • But aliases can be set up on the local SMTP server

Email Formats: RFC 822

An email comprises three parts:

  1. A header, with fields such as:
    • From
    • To, CC, Bcc
    • Message-ID
    • Subject
  2. A blank line
  3. The message body

Email Formats: MIME

MIME types

text/plaintext/htmltext/xml
image/gifimage/jpegimage/png
video/mpegaudio/mpeg
application/mswordapplication/vnd.ms-powerpoint
application/postscriptapplication/pdfapplication/zip
application/octet-streammultipart/mixed

Email headers

Email body

Example

From: Ann Sender <ann@someplace.org>
To: Ben Receiver <ben@somewhereelse.com>
Date: Mon, 12 Nov 2007 13:28:19 -0800
Subject: Photo
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="exampledelimtext123****"

This is a multipart message in MIME format

-exampledelimtext123****
Content-Type: text/plain

Ben, here is the photo you wanted me to send you.
Talk to you soon,
Ann.

-exampledelimtext123****

Content-Type: image/jpeg; name="myphoto.jpg"
Content-Transfer-Encoding: base64

SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs
zv/wAARCADIARoDASIAAhEBAxEB/8QAHAAAAQUBA

-exampledelimtext123****