Please submit the following items in a ZIP file. Source code; Instructions on how to install and…

Please submit the following items in a ZIP file.

  1. Source code;
  2. Instructions on how to install and run your program;
  3. A brief design document explaining your solution.

Sending Email with Python

You can implement your email client using Python. You should write a simple Python program that follow a step-by-step process to establish a TCP connection with a mail server through sockets, and send an email message.

from socket import *

# Message to send

msg = ‘rnHello World’

endmsg = ‘rn.rn’

# Choose a mail server and call it mailserver

mailserver = ‘smtp.nova.edu’

# Create socket called clientSocket and establish a TCP connection with mailserver

clientSocket = socket(AF_INET, SOCK_STREAM)

# Port number may change according to the mail server

clientSocket.connect((mailserver, 587))

recv = clientSocket.recv(1024)

print(recv)

if recv[:3] != ‘220’:

print(‘220 reply not received from server.’)

# Send HELO command and print server response.

heloCommand = ‘HELO g/mail.comrn’

clientSocket.send(heloCommand)

recv1 = clientSocket.recv(1024)

print(recv1)

if recv1[:3] != ‘250’:

print(‘250 reply not received from server.’)

# Send MAIL FROM command and print server response.

mailfromCommand = ‘MAIL FROM:

clientSocket.send(mailfromCommand)

recv1 = clientSocket.recv(1024)

print(recv1)

if recv1[:3] != ‘250’:

print(‘mail from 250 reply not received from server’)

# Send RCPT TO command and print server response.

rcpttoCommand = ‘RCPT TO:

clientSocket.send(rcpttoCommand)

recv1 = clientSocket.recv(1024)

print(recv1)

if recv1[:3] != ‘250’:

print(‘rcpt to 250 reply not received from server.’)

# Send DATA command and print server response.

dataCommand = ‘Data’

print(dataCommand)

clientSocket.send(dataCommand)

recv1 = clientSocket.recv(1024)

print(recv1)

if recv1[:3] != ‘250’:

print(‘data 250 reply not received from server.’)

# Send message data.

message = input(‘Enter Message Here: ‘)

# Message ends with a single period.

mailMessageEnd = ‘rn.rn’

clientSocket.send(message + mailMessageEnd)

recv1 = clientSocket.recv(1024)

print(recv1)

if recv1[:3] != ‘250’:

print(‘end msg 250 reply not received from server.’)

# Send QUIT command and get server response.

quitCommand = ‘Quitrn’

print(quitCommand)

clientSocket.send(quitCommand)

recv1 = clientSocket.recv(1024)

print(recv1)

if recv1[:3] != ‘250’:

print(‘quit 250 reply not received from server.’)

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!