An email attachment is a
computer file
A computer file is a System resource, resource for recording Data (computing), data on a Computer data storage, computer storage device, primarily identified by its filename. Just as words can be written on paper, so too can data be written to a ...
sent along with an
email message. One or more files can be attached to any email message, and be sent along with it to the recipient. This is typically used as a simple method to share documents and images.
History, and technical detail
Originally, ARPANET, UUCP, and Internet
SMTP
The Simple Mail Transfer Protocol (SMTP) is an Internet standard communication protocol for electronic mail transmission. Mail servers and other message transfer agents use SMTP to send and receive mail messages. User-level email clients typi ...
email allowed
7-bit ASCII
ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable and 33 control characters a total of 128 code points. ...
text only. Text files were emailed by including them in the message body. In the mid 1980s text files could be grouped with
UNIX
Unix (, ; trademarked as UNIX) is a family of multitasking, multi-user computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
tools such as bundle and
shar (shell archive) and included in email message bodies, allowing them to be unpacked on remote UNIX systems with a single shell command.
The COMSYS/MSGDMS system at MIT offered "Enclosures" beginning by 1976. Users inside COMSYS could receive the enclosure file directly. Messages sent to users out of the COMSYS world sent the enclosure as part of the message body, which was useful only for text files.
Attaching non-text files was first accomplished in 1980 by manually encoding 8-bit files using
Mary Ann Horton's
uuencode, and later using
BinHex or
xxencode and pasting the resulting text into the body of the message. When the "Attachment" user interface first appeared on PCs in
cc:Mail around 1985, it used the
uuencode format for SMTP transmission, as did
Microsoft Mail later.
Modern email systems use the
MIME
A mime artist, or simply mime (from Greek language, Greek , , "imitator, actor"), is a person who uses ''mime'' (also called ''pantomime'' outside of Britain), the acting out of a story through body motions without the use of speech, as a the ...
standard, making email attachments more utilitarian and seamless. This was developed by
Nathaniel Borenstein and collaborator
Ned Freed[Father of the email attachment]
Patrick Kingsley, ''The Guardian'', 26 March 2012 - with the standard being officially released a
RFC2045in 1996.
With MIME, a message and all its attachments are encapsulated in a single
multipart message, with
base64
In computer programming, Base64 is a group of binary-to-text encoding schemes that transforms binary data into a sequence of printable characters, limited to a set of 64 unique characters. More specifically, the source binary data is taken 6 bits ...
encoding used to convert binary into 7-bit ASCII text - or on some modern mail servers, optionally
full 8-bit support via the
8BITMIME extension.
Size limits
Email standards such as
MIME
A mime artist, or simply mime (from Greek language, Greek , , "imitator, actor"), is a person who uses ''mime'' (also called ''pantomime'' outside of Britain), the acting out of a story through body motions without the use of speech, as a the ...
do not specify any file size limits, but in practice, email users will find that they cannot successfully send very large files across the Internet.
This is because of a number of potential limits:
* Mail systems often arbitrarily limit the size their users are allowed to submit.
* A message will often pass through several
mail transfer agent
Within the Internet email system, a message transfer agent (MTA), mail transfer agent, or mail relay is software that transfers electronic mail messages from one computer to another using the Simple Mail Transfer Protocol. In some contexts, the a ...
s to reach the recipient. Each of these has to store the message before forwarding it on, and may therefore also impose size limits.
* The recipient mail system may reject incoming emails with attachments over a certain size.
The result is that while large attachments may succeed internally within a company or organization, they may not when sending across the Internet.
As an example, when
Google
Google LLC (, ) is an American multinational corporation and technology company focusing on online advertising, search engine technology, cloud computing, computer software, quantum computing, e-commerce, consumer electronics, and artificial ...
's
Gmail
Gmail is the email service provided by Google. it had 1.5 billion active user (computing), users worldwide, making it the largest email service in the world. It also provides a webmail interface, accessible through a web browser, and is also ...
service increased its arbitrary limit to 25MB it warned that: "''you may not be able to send larger attachments to contacts who use other email services with smaller attachment limits''".
Also note that all these size limits are based, not on the original file size, but the
MIME
A mime artist, or simply mime (from Greek language, Greek , , "imitator, actor"), is a person who uses ''mime'' (also called ''pantomime'' outside of Britain), the acting out of a story through body motions without the use of speech, as a the ...
-encoded copy. The common
Base64
In computer programming, Base64 is a group of binary-to-text encoding schemes that transforms binary data into a sequence of printable characters, limited to a set of 64 unique characters. More specifically, the source binary data is taken 6 bits ...
encoding adds about 37% to the original file size, meaning that an original 20MB file could exceed a 25MB file attachment limit.
A 10MB email size limit would require that the size of the attachment files is actually limited to about 7MB.
Users should be cautious with certain file formats when received as email attachments, such as
.zip and
.tgz files, because they can contain harmful viruses and potential software. .iso files can also be used to spread malware and
.exe is an executable file that can become active on a computer as soon as it is opened.
Malware
A lot of
malware
Malware (a portmanteau of ''malicious software'')Tahir, R. (2018)A study on malware and malware detection techniques . ''International Journal of Education and Management Engineering'', ''8''(2), 20. is any software intentionally designed to caus ...
is distributed via email attachments with some even considering such to be the main
vector
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
for cyberattacks on businesses.
Users are advised to be extremely cautious with attachments and to not open any attachments that are not from a trusted source and expected − even if the sender is in their address book as their account might have been taken over or misused.
[ While many email servers scan attachments for malware and block dangerous filetypes, this should not be relied upon − especially as such cannot detect zero-day exploits.
]
Dangerous file types
Email users are typically warned that unexpected email with attachments should always be considered suspicious and dangerous, particularly if not known to be sent by a trusted source. However, in practice this advice is not enough – "known trusted sources" were the senders of executable programs creating mischief and mayhem as early as 1987 with the mainframe-based Christmas Tree EXEC.
Since the ILOVEYOU and Anna Kournikova worms
The World Register of Marine Species (WoRMS) is a taxonomic database that aims to provide an authoritative and comprehensive catalogue and list of names of marine organisms.
Content
The content of the registry is edited and maintained by scien ...
of 2000 and 2001, email systems have increasingly added layers of protection to prevent potential malware
Malware (a portmanteau of ''malicious software'')Tahir, R. (2018)A study on malware and malware detection techniques . ''International Journal of Education and Management Engineering'', ''8''(2), 20. is any software intentionally designed to caus ...
. Now, many block certain types of attachments.''"You may receive an "Outlook blocked access to the following potentially unsafe attachments" message in Outlook"'', microsoft.com
References
{{reflist
Email