วันจันทร์ที่ 27 สิงหาคม พ.ศ. 2550

E-mail

Electronic mail (abbreviated "email" or, often, "e-mail") is a store and forward method of composing, sending, storing, and receiving messages over electronic communication systems. The term "e-mail" (as a noun or verb) applies both to the Internet e-mail system based on the Simple Mail Transfer Protocol (SMTP) and to intranet systems allowing users within one organization to e-mail each other. Often these workgroup collaboration organizations may use the Internet protocols for internal e-mail service. E-mail is often used to deliver bulk unsolicited messages, or "spam", but filter programs exist which can automatically delete some of these.

Spelling of this term is disputed, and varies by field. While "e-mail" (with a hyphen) is used in journalism (such as by the CNN, BBC and New York Times), the computer industry primarily uses the spelling "email" (no hyphen).[1] In particular, the original spelling is "email" (no hyphen), based on the technical roots of the term, as seen in the RFC documents for SMTP [4], POP [5] and IMAP [6], which use "mail" or "email".
"E-mail" is capitalized at the beginning of a sentence and in headings.


E-mail predates the inception of the Internet, and was in fact a crucial tool in creating the Internet. MIT first demonstrated the Compatible Time-Sharing System (CTSS) in 1961.[2] It allowed multiple users to log into the IBM 7094[3] from remote dial-up terminals, and to store files online on disk. This new ability encouraged users to share information in new ways. E-mail started in 1965 as a way for multiple users of a time-sharing mainframe computer to communicate. Although the exact history is murky, among the first systems to have such a facility were SDC's Q32 and MIT's CTSS.
E-mail was quickly extended to become network e-mail, allowing users to pass messages between different computers by at least 1966 (it is possible the
SAGE system had something similar some time before).
The
ARPANET computer network made a large contribution to the development of e-mail. There is one report [7] which indicates experimental inter-system e-mail transfers on it shortly after its creation, in 1969. Ray Tomlinson initiated the use of the @ sign to separate the names of the user and their machine in 1971 [8]. The ARPANET significantly increased the popularity of e-mail, and it became the killer app of the ARPANET.
The diagram above shows a typical sequence of events that takes place when Alice composes a message using her mail user agent (MUA). She types in, or selects from an address book, the e-mail address of her correspondent. She hits the "send" button.
Her MUA formats the message in
Internet e-mail format and uses the Simple Mail Transfer Protocol (SMTP) to send the message to the local mail transfer agent (MTA), in this case smtp.a.org, run by Alice's Internet Service Provider (ISP).
The MTA looks at the destination address provided in the SMTP protocol (not from the message header), in this case bob@b.org. An Internet e-mail address is a string of the form localpart@exampledomain.com, which is known as a Fully Qualified Domain Address (FQDA). The part before the @ sign is the local part of the address, often the
username of the recipient, and the part after the @ sign is a domain name. The MTA looks up this domain name in the Domain Name System to find the mail exchange servers accepting messages for that domain.
The
DNS server for the b.org domain, ns.b.org, responds with an MX record listing the mail exchange servers for that domain, in this case mx.b.org, a server run by Bob's ISP.
smtp.a.org sends the message to mx.b.org using SMTP, which delivers it to the mailbox of the user bob.
Bob presses the "get mail" button in his MUA, which picks up the message using the
Post Office Protocol (POP3).
This sequence of events applies to the majority of e-mail users. However, there are many alternative possibilities and complications to the e-mail system:
Alice or Bob may use a client connected to a corporate e-mail system, such as
IBM's Lotus Notes or Microsoft's Exchange. These systems often have their own internal e-mail format and their clients typically communicate with the e-mail server using a vendor-specific, proprietary protocol. The server sends or receives e-mail via the Internet through the product's Internet mail gateway which also does any necessary reformatting. If Alice and Bob work for the same company, the entire transaction may happen completely within a single corporate e-mail system.
Alice may not have a MUA on her computer but instead may connect to a
webmail service.
Alice's computer may run its own MTA, so avoiding the transfer at step 1.
Bob may pick up his e-mail in many ways, for example using the
Internet Message Access Protocol, by logging into mx.b.org and reading it directly, or by using a webmail service.
Domains usually have several mail exchange servers so that they can continue to accept mail when the main mail exchange server is not available.
E-mail messages are not secure if
e-mail encryption is not used correctly.
It used to be the case that many MTAs would accept messages for any recipient on the Internet and do their best to deliver them. Such MTAs are called
open mail relays. This was important in the early days of the Internet when network connections were unreliable. If an MTA couldn't reach the destination, it could at least deliver it to a relay that was closer to the destination. The relay would have a better chance of delivering the message at a later time. However, this mechanism proved to be exploitable by people sending unsolicited bulk e-mail and as a consequence very few modern MTAs are open mail relays, and many MTAs will not accept messages from open mail relays because such messages are very likely to be spam.
Note that the people, e-mail addresses and domain names in this explanation are fictional: see
Alice and Bob.

Format
The format of Internet e-mail messages is defined in
RFC 2822 and a series of RFCs, RFC 2045 through RFC 2049, collectively called Multipurpose Internet Mail Extensions (MIME). Although as of July 13, 2005 (see [9]) RFC 2822 is technically a proposed IETF standard and the MIME RFCs are draft IETF standards, these documents are the de facto standards for the format of Internet e-mail. Prior to the introduction of RFC 2822 in 2001 the format described by RFC 822 was the de facto standard for Internet e-mail for nearly two decades; it is still the official IETF standard. The IETF reserved the numbers 2821 and 2822 for the updated versions of RFC 821 (SMTP) and RFC 822, honoring the extreme importance of these two RFCs. RFC 822 was published in 1982 and based on the earlier RFC 733.
Internet e-mail messages consist of two major sections:
Header — Structured into fields such as summary, sender, receiver, and other information about the e-mail
Body — The message itself as unstructured text; sometimes containing a
signature block at the end
The header is separated from the body by a blank line.

Header
The message header consists of fields, usually including at least the following:
From: The
e-mail address, and optionally name, of the sender of the message
To: The e-mail address[es], and optionally name[s], of the receiver[s] of the message
Subject: A brief summary of the contents of the message
Date: The local time and date when the message was written
Each header field has a name and a value.
RFC 2822 specifies the precise syntax. Informally, the field name starts in the first character of a line, followed by a ":", followed by the value which is continued on non-null subsequent lines that have a space or tab as their first character. Field names and values are restricted to 7-bit ASCII characters. Non-ASCII values may be represented using MIME encoded words.
Note that the "To" field in the header is not necessarily related to the addresses to which the message is delivered. The actual delivery list is supplied in the SMTP protocol, not extracted from the header content. The "To" field is similar to the greeting at the top of a conventional letter which is delivered according to the address on the outer envelope. Also note that the "From" field does not have to be the real sender of the e-mail message. It is very easy to fake the "From" field and let a message seem to be from any mail address. It is possible to
digitally sign e-mail, which is much harder to fake. Some Internet service providers do not relay e-mail claiming to come from a domain not hosted by them, but very few (if any) check to make sure that the person or even e-mail address named in the "From" field is the one associated with the connection. Some Internet service providers apply e-mail authentication systems to e-mail being sent through their MTA to allow other MTAs to detect forged spam that might apparently appear to be from them.
Other common header fields include (see
RFC 4021 or RFC 2076 for more):
Cc:
carbon copy
Bcc:
Blind Carbon Copy
Received: Tracking information generated by mail servers that have previously handled a message
Content-Type: Information about how the message has to be displayed, usually a MIME type
Reply-To: Address that should be used to reply to the sender.
References:
Message-ID of the message that this is a reply to, and the message-id of this message, etc.
In-Reply-To:
Message-ID of the message that this is a reply to.
X-Face: Small icon.
Many e-mail clients present "Bcc" (Blind carbon copy, recipients not visible in the "To" field) as a header field. Different protocols are used to deal with the "Bcc" field; at times the entire field is removed, whereas other times the field remains but the addresses therein are removed. Addresses added as "Bcc" are only added to the SMTP delivery list, and do not get included in the message data.
IANA maintains a list of standard header fields.

Body
Content encoding
E-mail was originally designed for 7-bit
ASCII. Much e-mail software is 8-bit clean but must assume it will be communicating with 7-bit servers and mail readers. The MIME standard introduced character set specifiers and two content transfer encodings to enable transmission of non-ASCII data: quoted printable for mostly 7 bit content with a few characters outside that range and base64 for arbitrary binary data. The 8BITMIME extension was introduced to allow transmission of mail without the need for these encodings but many mail transport agents still don't support it fully. For international character sets, Unicode is growing in popularity.

Plain Text and HTML
Both
plain text and HTML are used to convey e-mail. While text is certain to be read by all users without problems, there is a perception that HTML-based e-mail has a higher aesthetic value. [10] Advantages of HTML include the ability to include inline links and images, set apart previous messages in block quotes, wrap naturally on any display, use emphasis such as underlines and italics, and change font styles. HTML e-mail messages often include an automatically-generated plain text copy as well, for compatibility reasons. Disadvantages include the increased size of the email, privacy concerns about web bugs and that HTML email can be a vector for phishing attacks and the spread of malicious software.[11]

Servers and client applications
Messages are exchanged between hosts using the
Simple Mail Transfer Protocol with software programs called mail transport agents. Users can download their messages from servers with standard protocols such as the POP or IMAP protocols, or, as is more likely in a large corporate environment, with a proprietary protocol specific to Lotus Notes or Microsoft Exchange Servers.
Mail can be stored either on the
client, on the server side, or in both places. Standard formats for mailboxes include Maildir and mbox. Several prominent e-mail clients use their own proprietary format and require conversion software to transfer e-mail between them.
When a message cannot be delivered, the recipient MTA must send a
bounce message back to the sender, indicating the problem.

Filename extensions
Most, but not all, e-mail clients save individual messages as separate files, or allow users to do so. Different applications save e-mail files with different
filename extensions.
.eml
This is the default e-mail extension for
Mozilla Thunderbird and is used by Microsoft Outlook Express.
.emlx
Used by
Apple Mail.
.msg
Used by
Microsoft Office Outlook.

Use
In society
Many observers bemoan the rise of
flaming in written communications. Flaming occurs when one person, usually upset at another person, sends the second person an angry and/or antagonistic message. Flaming is assumed to be more common today because of the ease and impersonality of e-mail communications: confrontations in person or via telephone require direct interaction, where social norms encourage civility, whereas typing an unhappy message to another person is an indirect interaction, so civility may be forgotten.

In business
E-mail was widely accepted by the business community as the first broad electronic communication medium and was the first ‘e-revolution’ in Business communication. E-mail is very simple to understand and like postal mail, e-mail solves two basic problems of communication:

Pros
The problem of logistics
Much of the business world relies on communication between individuals who are physically distant from one another; organizing and participating in an in-person meeting can be time-consuming and expensive. Email provides a near-instantaneous exchange of information at little cost.
Teleconferencing bridges physical distance, but the logistics of gathering people together at the same time remains.
The problem of synchronization
For
real time communication, participants generally have to be working on the same schedule. They need to be at the same place at the same time and spend the same amount of time on the same information.
E-mail allows each participant to decide when and how they will process the information.

Cons
Most business professionals today spend between 20% and 50% of their working time using e-mail
[4] : reading, ordering, sorting, ‘re-contextualizing’ fragmented information and of course writing emails. Use of e-mail is increasing, due to trends of globalization—distribution of organizational divisions, outsourcing, among others. E-mail can lead to some well-known problems:
Loss of Context: Information in
context (as in a newspaper) is much easier and faster to understand than unsorted fragments. Communicating in context is faster and more efficient.
Spam: E-mail is a
push-only medium: control of who receives information lies primarily with the sender. This can lead to an overflow of unwanted or irrelevant information.
Inconsistency: E-mail can duplicate information. This may be a problem when a team is collaboratively working on documents.
Despite these disadvantages, and despite the availability of other tools, e-mail-based communication is still the most widely used written medium in businesses.