CSS Prepare

optional · CSS study notes

I.23 Electronic Mail (E-mail)

⬆️ Back to: P-I.I. Introduction to Computing

🧭

Page Outline — click a heading to jump.

🎯

Exam pattern (2016–2026): No direct question. Linked to 2026 Q2(a) (email attachment limits, see I.27) and 2026 Q2(b) (phishing email, see I.31).


CSS Computer Science (Optional) — Paper-I, Section-A, Topic I, p.51-61. Covers: Electronic Mail (E-Mail).

Definition

Email is a method of exchanging digital messages over a network.

Classification of Email

By Function (Protocol Role)

CategoryRoleProtocol(s)
Sending/TransferPushes a composed message from the sender's client to the recipient's mail serverSMTP
Retrieval (Local)Downloads mail to one device, typically removing it from the server afterwardPOP3
Retrieval (Synced)Mirrors the server's master copy across every connected deviceIMAP

Other Classification Axes

  • By access mode: Webmail (accessed entirely through a browser — Gmail, Yahoo Mail — no client installation needed) vs. Client-based (a dedicated application — Outlook, Thunderbird — connecting via IMAP/POP3/Exchange) vs. Mobile app (a phone/tablet app, typically IMAP-based, syncing the same account across devices).
  • By storage model: Local-only (POP3 — the server copy is deleted after download) vs. Server-synced (IMAP and virtually all webmail — the server always holds the master copy).
  • By recipient visibility: To/CC (visible to every recipient) vs. BCC (hidden from all other recipients).
  • Exam angle: a scenario like "a user reads mail on both a phone and a laptop and sees identical read/unread status on both" describes IMAP, not POP3 — the synced storage model is the giveaway; state which axis (function, access mode, storage model) you're classifying by before answering.

Key Concepts

  • Email address structure: username@domain (e.g., name@example.com)
  • Core protocols:
    • SMTP (Simple Mail Transfer Protocol) — the protocol used to send/push email: from the sender's mail client to their outgoing mail server, and then relayed between mail servers until it reaches the recipient's server. It works on a "push" model and conventionally uses port 25 (or 587 for authenticated client submission). SMTP is only concerned with delivery/routing — it cannot be used to read or download mail from a mailbox, which is why POP3/IMAP exist alongside it.
    • POP3 (Post Office Protocol v3) — a retrieval protocol (port 110, or 995 with encryption) that downloads messages from the mail server to one device and, by default, deletes them from the server afterward, so the mail effectively "lives" on that single device. Best suited to a user who checks mail from only one computer and wants a local, offline copy; disadvantage: messages read on that device won't appear on a second device unless "leave a copy on server" is explicitly enabled.
    • IMAP (Internet Message Access Protocol) — a retrieval protocol (port 143, or 993 with encryption) that keeps the master copy of every message on the server and merely mirrors/syncs it to each connected device; read/unread status, folders, and deletions sync across all devices. Best suited to a user who checks the same mailbox from a phone, laptop, and webmail interchangeably; disadvantage: requires more server storage and an internet connection to see the full mailbox.
  • Message structure: To, CC (Carbon Copy — visible to all recipients), BCC (Blind Carbon Copy — hidden from other recipients), Subject, Body, Attachments
  • Spam/Phishing: unsolicited or fraudulent email, a major security concern covered in more depth under Computer Crimes

Common Email Service Providers

  • Gmail (Google) — a free webmail service offering large storage (measured in gigabytes), strong spam filtering, and tight integration with other Google Workspace tools (Drive, Calendar, Meet). Supports both IMAP and POP3 access from third-party mail clients. Widely used for personal and increasingly for organizational email (via Google Workspace for business); advantage: powerful search and spam filtering; disadvantage: as with any free webmail, the provider scans mail metadata to serve some features/ads (in personal free-tier accounts).
  • Microsoft Outlook / Outlook.com — both a desktop/webmail email client and, combined with Exchange Server, the standard corporate email system in many government and business offices (including much of Pakistan's public sector). Provides integrated calendar, contacts, and task management alongside mail, and supports IMAP/POP3/Exchange protocols. Advantage: deep integration with Microsoft Office and enterprise directory services (Active Directory); disadvantage: the full enterprise feature set (shared calendars, org-wide address books) typically requires an organizational Exchange/365 subscription.
  • Yahoo Mail — one of the earliest mass-market free webmail services, still widely used, offering generous storage and basic spam filtering with IMAP/POP3 support. Advantage: free and long-established; disadvantage: has historically had more high-profile security breaches than some competitors, so account security practices matter especially here.

Historical / Legacy Email Providers

  • Hotmail: widely credited as the first mass-market free webmail service; founded 4 July 1996 by Sabeer Bhatia and Jack Smith (the date was deliberately chosen to symbolize "freedom" from ISP-tied email); acquired by Microsoft in 1998 for roughly $400 million; rebranded successively as MSN Hotmail, then Windows Live Hotmail, and finally relaunched as **Outlook.com in 2013**.
  • AOL Mail: the email service bundled with America Online's dial-up internet service, culturally famous for its "You've Got Mail" notification sound during the 1990s/early-2000s dial-up era.
  • Juno / NetZero: free, ad-supported dial-up internet services in the United States (late 1990s) that bundled their own email accounts as a sign-up incentive.
  • CompuServe: one of the earliest commercial online services (from the late 1970s/1980s), offering some of the first widely used consumer email accounts before the mass-market internet era.

Exam angle

"Which was the first free webmail service?" is a recurring trivia-style question — the standard accepted answer is Hotmail (1996), not Gmail (launched much later, in 2004) or Yahoo Mail (launched 1997); don't let Gmail's current dominance lead you to pick it as "the first."

Email Clients

Definition

An email client is the software a user runs to compose, send, receive, and organize email — connecting to a mail server via SMTP (sending) and POP3/IMAP/Exchange (retrieval). It is distinct from an email service provider (the company hosting the mailbox, e.g., Gmail, Yahoo): the same mailbox can be accessed through several different clients.

Types of Email Clients

TypeDescriptionExamples
Desktop/NativeInstalled application on a specific OS; stores mail locally (POP3) or synced (IMAP/Exchange)Microsoft Outlook, Mozilla Thunderbird, Apple Mail
WebmailAccessed entirely through a browser; no installation — mailbox lives on the provider's serverGmail (web), Outlook.com, Yahoo Mail (web)
MobileApp on a phone/tablet, typically IMAP/Exchange-based so status stays synced with other devicesGmail app, Outlook mobile, Apple Mail (iOS)

Common Desktop Email Clients

  • Microsoft Outlook: bundled with Microsoft Office/365; integrates calendar, contacts, and tasks alongside mail; the standard corporate/government client when paired with Exchange Server.
  • Mozilla Thunderbird: free, open-source, cross-platform (Windows/macOS/Linux); extensible via add-ons; can manage multiple accounts and protocols in one place.
  • Apple Mail: built into macOS/iOS at no extra cost; tight iCloud integration; limited usefulness outside the Apple ecosystem.

Key Features of an Email Client

  • Manages multiple accounts from different providers in one unified inbox.
  • Offers offline access to previously downloaded/cached mail.
  • Organizes mail with folders, filters/rules, and labels.
  • Provides an integrated address book/contacts list.
  • Applies client-side spam/junk filtering, in addition to the server's own filtering.
  • Supports local search across stored mail.

Email Client vs Webmail

AspectEmail Client (Desktop App)Webmail (Browser-based)
InstallationRequires installing softwareNone — just a browser
SetupMust configure server settings (SMTP/IMAP/POP3, ports)None — just log in
Offline accessYes, for cached/local mailLimited/none — needs internet
Multiple accountsEasily manages several accounts togetherUsually one account per login/session
StorageCan hold mail locally (POP3)Always server-side

Exam angle

An email service provider (e.g., Gmail, Yahoo) is the company hosting the mailbox; an email client (e.g., Outlook, Thunderbird) is the software used to access it — the same Gmail account can be read through the Gmail webmail interface, the Gmail mobile app, or a third-party client like Thunderbird via IMAP. Note that Outlook is unusual in appearing on both sides: it is a desktop client, while Outlook.com is also a webmail service/provider.

Historical / Legacy Email Clients

  • Eudora: created in 1988 by Steve Dorner at the University of Illinois at Urbana-Champaign; commercialized after Qualcomm hired Dorner in 1992; one of the most popular email clients of the 1990s/early 2000s; discontinued as a proprietary product in 2006, its final "Eudora OSE" version rebuilt on the Mozilla Thunderbird codebase.
  • Pegasus Mail: created in February 1990 by David Harris in New Zealand, originally for Novell NetWare MS-DOS workstations; supplied completely free of charge until 2006; once one of the most widely used free email clients, especially on academic/campus networks.
  • Outlook Express: Microsoft's free, lightweight email client bundled with older versions of Windows and Internet Explorer — distinct from the full, paid Microsoft Outlook that ships with Office; later replaced by Windows Mail and then Windows Live Mail.
  • Netscape Mail (Netscape Communicator): the email component bundled with the Netscape Communicator browser suite in the 1990s, alongside the once-dominant Netscape Navigator web browser.
  • Opera Mail (M2): originally built directly into the Opera web browser; later split off into a separate, free standalone application ("Opera Mail") around 2011.
  • Lotus cc:Mail / Lotus Notes: IBM/Lotus's early enterprise email and groupware systems, widely deployed on corporate/government networks through the 1990s before many organizations migrated to Exchange/Outlook.

Exam angle

Distinguish a pure email client (Eudora, Pegasus Mail, Outlook Express — mail only) from a broader groupware platform (Lotus Notes — email + calendar + custom apps, comparable in scope to modern Outlook + Exchange).

Advantages & Disadvantages of Email

Advantages

  • Speed: delivered within seconds regardless of the recipient's geographic distance, unlike postal mail.
  • Cost: sending costs nothing beyond an existing internet connection — no postage or courier fee, even for bulk or international mail.
  • Convenience: one message reaches multiple recipients at once (To/CC/BCC), and documents/images/files travel with it as attachments.
  • Record-keeping: every message is automatically time-stamped and stored/searchable, creating a written record of the communication.
  • Accessibility: retrievable from any internet-connected device via webmail or IMAP — not tied to a single physical location or machine.

Disadvantages

  • Security risks: vulnerable to phishing, spam, malware attachments, and address spoofing.
  • Information overload: high inbox volume can bury genuinely important messages.
  • Dependence on infrastructure: unusable without a working device and internet access, unlike a physical letter already in transit.
  • Loss of tone/nuance: plain text carries no vocal tone or body language, so sarcasm, urgency, or emotion are easily misread — a frequent cause of miscommunication.
  • No guaranteed read confirmation: unlike a phone call, the sender cannot be sure the recipient has read the message unless a read-receipt is requested — and even that can be declined by the recipient.

Netiquette (Email Etiquette)

  • Clear, specific subject line: summarizes the email's purpose so the recipient can prioritize and later find it.
  • Professional greeting & closing: an appropriate salutation (e.g., "Dear Sir/Madam") and sign-off, especially in formal/official correspondence.
  • Concise, on-topic body: stays focused on the stated purpose; avoids unnecessary length.
  • Judicious use of Reply All: used only when every recipient genuinely needs to see the response, to avoid cluttering others' inboxes.
  • No ALL CAPS: writing in all capital letters is read as "shouting" and considered rude/aggressive.
  • Proofread before sending: checks spelling, grammar, and that any referenced attachment is actually attached.
  • Respect recipients' privacy: uses BCC (not To/CC) when mailing a large list of people who don't know each other, so addresses aren't exposed to the whole group.
  • Mind attachment size: avoids sending very large files that could bounce or overload a recipient's mailbox; shares a cloud-storage link instead for bulky data.
  • Timely response: replies within a reasonable time frame, especially in a professional/official context.
  • No forwarding chain mail or unverified content: avoids propagating spam, hoaxes, or unsolicited forwards to others' inboxes.
  • Exam angle: "netiquette" = net (network) + etiquette — the accepted code of polite, responsible online/email behavior; examiners may ask you to identify a netiquette violation in a short scenario (e.g., a message typed entirely in capitals, or a reply-all sent to 50 people).

MCQ Traps

  • POP3 downloads and typically removes mail from the server; IMAP keeps mail synced across devices — a frequently reversed-answer trap.
  • SMTP is for sending; POP3/IMAP are for retrieving mail — don't mix up the direction of these protocols.
  • BCC recipients are hidden from all other recipients (including CC'd ones); CC recipients are visible to everyone.
  • SMTP cannot retrieve/download mail — it only sends/relays; retrieval is always POP3 or IMAP's job, never SMTP's.
  • "Netiquette" is about online behavior, not a technical protocol — don't confuse it with a network/email protocol name; it refers to accepted etiquette rules (no ALL CAPS, judicious Reply All, BCC for large lists, etc.).
  • Email's biggest advantage (speed/low cost) is also tied to its biggest risk (phishing/spam) — exam questions sometimes pair an advantage with a disadvantage and ask you to match them correctly rather than list them separately.
  • "Email client" and "email service provider" are not the same thing — Gmail is a provider that can be accessed via multiple clients (its own webmail, a mobile app, or Thunderbird); don't assume every named product is only one or the other (Outlook is both a client and, as Outlook.com, a provider).
  • Hotmail, not Gmail, is the pioneer — Hotmail (1996) predates Gmail (2004) by 8 years; Gmail's present-day dominance makes it a tempting but wrong answer to "first free webmail service."
  • Eudora and Pegasus Mail are pure clients, not providers — they don't host a mailbox themselves; they connect to whatever mail server (via POP3/IMAP) the user's account actually lives on.

Frequently Asked MCQs (Past Papers)

  • Q: Which protocol is used to send email from a client to a mail server? — A: SMTP (Simple Mail Transfer Protocol).
  • Q: Which two protocols are used to retrieve/download email from a mail server? — A: POP3 and IMAP.
  • Q: What is the default port number used by SMTP? — A: Port 25 (587 for authenticated client submission).
  • Q: What is the default port number used by POP3? — A: Port 110 (995 with SSL/encryption).
  • Q: What is the default port number used by IMAP? — A: Port 143 (993 with SSL/encryption).
  • Q: Which retrieval protocol deletes mail from the server after downloading it to one device, by default? — A: POP3.
  • Q: Which retrieval protocol keeps a synced master copy of every message on the server across multiple devices? — A: IMAP.
  • Q: Which recipient field hides a recipient's address from all other recipients? — A: BCC (Blind Carbon Copy).
  • Q: What does CC stand for in an email header? — A: Carbon Copy.
  • Q: In the address format username@domain, what does the part after the "@" represent? — A: The mail server/domain hosting the recipient's mailbox.
  • Q: What does the term "netiquette" mean? — A: Network etiquette — the accepted code of polite, responsible behavior when communicating online/by email.
  • Q: Which of these is a netiquette violation — writing in all capital letters, using a clear subject line, or using BCC for a large mailing list? — A: Writing in all capital letters (read as "shouting").
  • Q: What is a key disadvantage of email compared to a phone call? — A: The sender has no guaranteed confirmation the recipient has read the message (no built-in read receipt by default).
  • Q: Why should BCC be used instead of To/CC when emailing a large list of unrelated recipients? — A: To protect recipients' privacy by hiding their email addresses from each other.
  • Q: What is an email client? — A: Software used to compose, send, receive, and organize email by connecting to a mail server — distinct from the email service provider that hosts the mailbox.
  • Q: Which of the following is a desktop email client rather than a webmail service: Mozilla Thunderbird, Gmail, or Yahoo Mail? — A: Mozilla Thunderbird.
  • Q: What is a key advantage of a desktop email client over plain webmail? — A: It can offer offline access to previously downloaded/cached mail and manage multiple accounts together in one place.
  • Q: Which service is credited as the first mass-market free webmail service, and in what year was it founded? — A: Hotmail, founded in 1996.
  • Q: Who were the co-founders of Hotmail? — A: Sabeer Bhatia and Jack Smith.
  • Q: Which company acquired Hotmail, and in what year? — A: Microsoft, in 1998.
  • Q: What is Hotmail known as today, following its rebranding? — A: Outlook.com.
  • Q: Which early email client, created in 1988 by Steve Dorner, was later owned by Qualcomm? — A: Eudora.
  • Q: Which free email client was created in New Zealand in 1990 by David Harris? — A: Pegasus Mail.
  • Q: What was Microsoft's free, lightweight email client bundled with older versions of Windows, distinct from the full Outlook? — A: Outlook Express.

✅ Self-Test Questions (with Answers)

Q1. Name the three core email protocols and briefly state what each does.

Ans: The three core email protocols divide the job between sending and retrieving:

  • SMTP — Simple Mail Transfer Protocol. The sending/transfer protocol. It pushes a composed message from the sender's client to the outgoing mail server, and relays it between mail servers until it reaches the recipient's mail server. It operates on a push model and uses port 25 for server-to-server relay, or port 587 for authenticated client submission (465 for implicit SSL/TLS). Crucially, SMTP cannot read or download mail from a mailbox.
  • POP3 — Post Office Protocol version 3. A retrieval protocol on port 110 (995 with SSL/TLS). It downloads messages from the server to a single device and, by default, deletes the server copy, so the mail effectively lives on that one machine.
  • IMAP — Internet Message Access Protocol. A retrieval protocol on port 143 (993 with SSL/TLS). It keeps the master copy on the server and mirrors it to every connected device, synchronising read/unread status, folder structure and deletions across all of them.

The standard trap is direction: SMTP sends, POP3 and IMAP retrieve. A useful mnemonic is that SMTP's "S" is for Sending, while POP and IMAP both "pick up" mail.

Q2. Why would someone choose IMAP over POP3 if they check email from multiple devices?

Ans: Because IMAP keeps the authoritative copy of the mailbox on the server and merely synchronises a view of it to each device, whereas POP3 downloads mail to one device and removes it from the server. With IMAP, the user's mailbox state is identical everywhere: a message read on the phone shows as read on the laptop, a message filed into a folder appears in that folder in webmail, a deletion on one device propagates to all, and messages in Sent are visible from every device. With POP3, whichever device downloads a message first effectively takes it — the others never see it. Even with "leave a copy on server" enabled, POP3 still does not sync read status, folders or deletions; each device maintains an isolated, divergent copy.

AspectPOP3IMAP
Where the master copy livesOn the downloading deviceOn the mail server
Default server behaviourDeletes mail after downloadRetains all mail on the server
Multi-device syncNone; each device divergesFull sync of read status, folders, deletions
Server storage neededMinimalLarge; whole mailbox stored
Internet dependenceWorks offline once downloadedNeeds a connection for the full mailbox
Best suited toOne computer, offline archive, limited quotaPhone plus laptop plus webmail on one account
Default port110, or 995 with SSL143, or 993 with SSL

A useful additional advantage is server-side search and selective download — IMAP can fetch headers first and download a large attachment only on demand, which suits mobile use on a metered connection. The cost is heavier server storage and reliance on connectivity. The classic scenario question — "a user reads mail on both a phone and a laptop and sees identical read/unread status" — always describes IMAP.

Q3. What is the difference between CC and BCC?

Ans: Both fields send a copy of the same message to additional recipients; the difference is visibility of the recipient's address. CC (Carbon Copy) — a term inherited from the carbon paper used to make duplicate typed letters — sends a copy whose address is visible to every other recipient. It signals "for your information" rather than "for your action," and is used to keep a supervisor or colleague informed. BCC (Blind Carbon Copy) sends a copy whose address is hidden from all other recipients, including those in To and CC; nobody else can see that the BCC'd person received the mail.

AspectCCBCC
Address visibilitySeen by all recipientsHidden from everyone else
Meaning to the readerFor your information, no action requiredRecipient is copied discreetly
Effect of Reply AllCC recipients are included in repliesBCC recipients are excluded from replies
Main useKeeping a manager or team informedMass mailings; protecting recipient privacy

The practical rule of netiquette is to use BCC when emailing a large list of people who do not know each other — a circular to 200 citizens, for instance. Putting them all in To or CC exposes every person's address to every other, which is a privacy breach, invites Reply All storms, and hands a ready-made list to spammers. Note also that BCC recipients do not receive later replies in the thread, which can cause confusion if used carelessly in ongoing correspondence.

CSS angle: Under Pakistan's data-protection thinking and general official confidentiality norms, disclosing a distribution list of citizens' personal email addresses without consent is poor practice; BCC is the simple technical control that prevents it.

Q4. Compare Gmail and Microsoft Outlook in terms of typical use-case (personal vs organizational).

Ans: Gmail, launched by Google in 2004, is fundamentally a webmail service that became the default choice for personal email: free at the consumer tier, accessed through any browser, with very large storage, industry-leading spam filtering and powerful search built on Google's indexing expertise. It integrates tightly with Drive, Calendar and Meet, and supports both IMAP and POP3 for access from third-party clients. Its organisational form, Google Workspace, is increasingly adopted by startups, NGOs and educational institutions that value browser-based collaboration and low administrative overhead.

Microsoft Outlook occupies both sides of the client/provider distinction: it is a desktop email client shipped with Microsoft Office, and Outlook.com is also a webmail service (the successor to Hotmail). Paired with Microsoft Exchange Server or Microsoft 365, it is the standard organisational mail platform — it is a full personal information manager, bundling mail with calendar, contacts, tasks and notes, and it plugs into enterprise directory services (Active Directory) to provide organisation-wide address books, shared calendars, meeting-room booking, distribution lists, retention policies and archiving.

AspectGmailMicrosoft Outlook with Exchange
Primary characterCloud webmail serviceDesktop client plus enterprise mail platform
Typical userIndividuals; cloud-first organisationsCorporate and government offices
Cost at consumer tierFreeOutlook.com free; desktop Outlook needs a licence
Standout strengthsSearch, spam filtering, Workspace integrationCalendar, contacts, tasks, directory integration
Offline workingLimited; browser-basedStrong; full local cached mailbox
AdministrationGoogle Workspace admin consoleExchange or Microsoft 365 admin with Active Directory
ProtocolsIMAP, POP3, SMTPExchange/MAPI, plus IMAP, POP3, SMTP

CSS angle: Much of Pakistan's public sector runs on Microsoft Outlook with Exchange because government offices need directory-integrated official addresses, shared calendars, records retention and control over where mail is stored — and because official correspondence must remain available offline during connectivity outages. Note also the standing policy concern that officials conducting government business on free personal webmail accounts creates record-keeping and data-sovereignty problems.

Q5. Explain, with port numbers, how SMTP, POP3 and IMAP each fit into sending and receiving one email.

Ans: Trace a single message from Ali (ali@example.pk) to Bushra (bushra@sample.com):

  1. Composition and submission — SMTP, port 587. Ali composes the mail in his client and clicks Send. The client opens an authenticated SMTP session to his provider's outgoing server (smtp.example.pk) on port 587, the designated Mail Submission port, encrypted with STARTTLS. Ali authenticates with his credentials, and the message is handed over.
  2. Routing lookup — DNS, port 53. Ali's server queries DNS on port 53 for the MX (Mail Exchange) record of sample.com, which names the host that accepts mail for that domain.
  3. Server-to-server relay — SMTP, port 25. Ali's server opens an SMTP connection to Bushra's mail server on port 25, the classic relay port, and transfers the message. It is deposited in Bushra's mailbox. SMTP's job now ends — it has no ability to read a mailbox.
  4. Retrieval — IMAP or POP3. Bushra opens her mail:
    • Via IMAP on port 143, or 993 with SSL/TLS: the message stays on the server and is mirrored to her phone, laptop and webmail, with read status and folders synchronised across all of them.
    • Or via POP3 on port 110, or 995 with SSL/TLS: the message is downloaded to the one device and, by default, deleted from the server.
StageProtocolPlain portSecure port
Client submits outgoing mailSMTP587 (submission)465 implicit SSL
Server relays to serverSMTP2525 with STARTTLS
Recipient downloads to one devicePOP3110995
Recipient syncs across devicesIMAP143993

The structural point to state in an exam answer is the asymmetry: email uses one protocol to push (SMTP) and a different protocol to pull (POP3 or IMAP). SMTP delivers into the mailbox but cannot read from it; POP3 and IMAP read from the mailbox but cannot send. This is why every mail client configuration screen asks for both an outgoing (SMTP) server and an incoming (IMAP/POP3) server.