Professional Documents
Culture Documents
Task:
Server Objectives:
Using PYTHON, “sockets” and the Simple Mail Transport Protocol (SMTP),
to create a server program.
Client Objectives:
Using PYTHON, “sockets”, and the Simple Mail Transport Protocol (SMTP),
create a client program that will contact an SMTP server to send a text
email message.
The message
You must include a “Send” button. When the “Send” button is clicked, the
client will conduct a successful dialog with an SMTP server. The client
program must display the entire sequence of dialog messages between
the client and the server.
Rochester Institute of Technology
SMTP
C: HELO relay.example.org
C: MAIL FROM:<bob@example.org>
S: 250 Ok
C: RCPT TO:<alice@example.com>
S: 250 Ok
C: RCPT TO:<theboss@example.com>
S: 250 Ok
C: DATA
C: Cc: theboss@example.com
C:
C: Hello Alice.
C: This is a test message with 5 header fields and 4 lines in the message
body.
C: Your friend,
C: Bob
C: .
C: QUIT
S: 221 Bye
The information between the DATA and the .(period) is the email message.