You are on page 1of 12

SERVICES VIA EMAIL AND

EMAIL INTERACTION PROTOCOLS

perform the services requested by or on behalf of the user. PDAs.SERVICES VIA EMAIL Email is an Internet application that is available widely: it can be accessed from laptops. mobile phones. and pagers Imagine an application that can receive email from a user. and then send the results back to the user via email The application uses the SMTP and POP3 protocols . desktops.

.

SMTP Mail reader Mail gateway Mail daemon Mail daemon SMTP/TCP Mail reader Mail daemon SMTP/TCP .

sc.edu” MAIL command “MAIL <SP> FROM: address<CRLF>” RCPT command “RCPT <SP> TO: address<CRLF>” DATA command End-of-mail indicator QUIT .SMTP SIMPLE MAIL TRANSFER PROTOCOL A sender-SMTP establishes a two-way transmission channel to a receiver-SMTP on PORT 25       HELO command “HELO engr.

edu SMTP Commands/Replies PORT 25 USER 2 Receiver – SMTP Hotmail.com .sc.engr.ARCHITECTURAL VIEW OF SMTP USER 1 Sender – SMTP mailbox.

POP3 POST-OFFICE PROTOCOL  POP3 is used to receive email messages via a TCP/IP connection. a client establishes a connection with a POP3 server at PORT 110     Authorization state USER huhns PASS ***** Transaction state STAT +OK <SP> # of messages <SP> size of mailbox Retrieve command RETR 45 Response: Header <CRLF> Message content DELE msg# & RSET .

5.EXAMPLE POP3 INTERACTION /*********** After Connection ************/ +OK Microsoft Exchange POP3 server version 5.50 ready /* SERVER */ USER shroff /* CLIENT */ +OK /* SERVER */ PASS ********** /* CLIENT */ +OK User successfully logged on /* SERVER */ STAT /* CLIENT */ +OK 107 1545500 /* SERVER */ RETR 107 /* CLIENT */ +OK /* SERVER */ /* HEADER.12.com ([64. /** PERIOD **/ .aol.edu I finished assignment two … .2654. CONTENT */ Received: from imo-m03.sc.mx. 18 Sep 2001 00:06:54 EDT Subject: Re: CSCE826 Homework To: HUHNS@engr.sc.com Date: Tue. BLANK LINE.6]) by mailbox.136.edu with SMTP From: Hm412000@aol.engr.

26.0.edu Subject: result for your query any old message .edu /* CLIENT */ 250 stephens@engr.sc. Mon..0/8.edu ESMTP Sendmail 8.csd.csd.edu /* CLIENT */ 250 stephens@engr. Recipient ok /* SERVER */ Data /* CLIENT */ 354 Enter mail.engineering [129.edu.sc.edu." on a line by itself /* SERVER */ Date: Mon Sep 24 01:00:53 EDT 2001 /* CLIENT */ From: stephens@engr..sc.252.sc.sc. end with ".edu /* CLIENT */ 250 theusc. Sender ok /* SERVER */ RCPT TO: huhns@engr.EXAMPLE SMTP INTERACTION /*********** After Connection ************/ 220 theusc.9..sc.sc.sc. 250 AAA33192 Message accepted for delivery QUIT /* PERIOD Signaling End-of-Message */ /* SERVER */ /* CLIENT */ .9. 24 Sep 2001 00:58:05 –0400 /* SERVER */ HELO engr..edu Hello l-1d11-14.88] pleased to meet you /* SERVER */ MAIL FROM: stephens@engr.

SERVICE EXAMPLE: DATA AND DOCUMENT ACCESS Database Application receives and sends email Application USER 1DB 2Txt File 3Word Doc 4ExcelSheet 5HTML 6Image 7Directory SpreadSheet Files Directory .

)  The service application receives messages sent by “USER”  “USER” specifies file type in SUBJECT field  E. DB. query. or command in CONTENT field  Application returns results either as email content or attachment .g. DIR. etc..DATA AND DOCUMENT ACCESS (CONT. HTML.  “USER” specifies name of file. ALL (for file listing).

THANK YOU .