Professional Documents
Culture Documents
A simple note!
Structure of Email Address
• Username@Domainname
• Domain name: name of the server keeping emails of a user. This could be any free
web-based email service provider ex gmail.com to any private company ex
sharda.ac.in.
• Username: your specific account. Ex: abs@gmail.com , xyz@sharda.ac.in etc.
E-mail Address
Structure of an email
• The header
• The message
• the header fields
• the message body
The header
• a set of lines containing information about the message's
transportation, such as
• the sender's address,
• the recipient's address,
• or timestamps showing when the message was sent by intermediary servers
to the transport agents (MTAs), which act as a mail sorting office.
The header begins with a From line and is changed each time it passes through
an intermediary server. Using headers, you can see the exact path taken by the
email, and how long it took each server to process.
The message
• The header fields, a set of lines describing the message's settings,
such as the sender, the recipient, the date, etc.
• Each one has the following form: Name: Value
• An email includes at least the three following headers:
• From: The sender's email address
• To: The recipient's email address
• Date: The date when the email was sent
• It may contain the following optional fields:
• Received: Various information about the intermediary servers and the date when the
message was processed.
• Reply-To: A reply address.
• Subject: The message's subject
• Message-ID: A unique identification for the message.
Header
Examples
• Hotmail
• Log in to your Hotmail account.
• Select Inbox from the left-side menu.
• Right-click the message you'd like to view headers for and select View
Message Source.
• The full headers will appear in a new window.
• Yahoo! Mail
• Log in to your Yahoo! Mail account.
• Select the message you'd like to view headers for.
• Click the Actions dropdown and select View Full Header.
• The full headers will appear in a new window.
The message
• The message body, containing the message, separated from the
header by a line break.
How Email is sent!
UAs and MTs
Relay MTAs
Mail Gateways
Sending of emails :Steps Involved
Step1: An SMTP client contacts the destination host's SMTP server on port 25, to deliver the mail.
The client then waits for the server to send a 220 READY FOR MAIL message.
Receipt of the 220 message, the client sends a HELO command.
The server then responds with a "250 Requested mail action okay" message.
• Step2: MAIL command gives the
sender identification + FROM:
field that contains the address
to which errors should be
reported.
• Step3:The sender issues a
series of RCPT commands
(recipients of the mail
message).
• Step4:The receiver will the
acknowledge each RCPT
command by sending 250 OK or
by sending the error message
550 No such user here.
• Step 5: After all RCPT commands
have been acknowledged, the
sender issues a DATA command to
inform the receiver that the sender
is ready to transfer a complete mail
message.
• Step 6: The receiver responds with
message 354 Start mail command
with an ending sequence that the
sender should use to terminate the
message data.
• Step 7: The client now sends the
data line by line, ending with the 5-
character sequence <CRLF>.
• Step8:Receiver acknowledges with
a 250 OK, or an appropriate error
message if anything went wrong.
Remote Login
Local Login
Remote Login
Concept of NVT