Skeleton Python Code for the Mail Client from socket import * msg =”\r\n I love computer networks!” end msg = ”\r\n.\r\n” # Choose a mail server (e.g. Google mail server) and call it mail server Mail...

Skeleton Python Code for the Mail Client from socket import * msg =”\r\n I love computer networks!” end msg = ”\r\n.\r\n” # Choose a mail server (e.g. Google mail server) and call it mail server Mail server = #Fill in start #Fill in end # Create socket called client Socket and establish a TCP connection with mail server #Fill in start #Fill in end recv = client Socket .recv(1024) print recv if recv[:3] != '220': print '220 reply not received from server.' # Send HELO command and print server response. Helo Command = 'HELO Alice\r\n' client Socket. send(hello Command) recv1 = client Socket .recv(1024) print recv1 if recv1[:3]! = '250': print '250 reply not received from server.' # Send MAIL FROM command and print server response. # Fill in start # Fill in end # Send RCPT TO command and print server response. # Fill in start # Fill in end # Send DATA command and print server response. # Fill in start # Fill in end # Send message data. # Fill in start # Fill in end # Message ends with a single period. # Fill in start # Fill in end # Send QUIT command and get server response. # Fill in start # Fill in end 1. Mail servers like Google mail (address: smtp. g mail.com, port: 587) requires your client to add a Transport Layer Security (TLS) or Secure Sockets Layer (SSL) for authentication and security reasons, before you send MAIL FROM command. Add TLS/SSL commands to your existing ones and implement your client using Google mail server at above address and port

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here