Question: USING C PROGRAMMING IN LINUX Today you will implement the classic 'mail' command of UNIX that was (once upon a time) used by most of

USING C PROGRAMMING IN LINUX
Today you will implement the classic 'mail' command of UNIX that was (once upon a time) used by most of us to send emails. 'mail' is a program that negotiates a connection with a server and sends an email using SMTP (Simple Mail Transfer Protocol). SMTP is a simple text protocol. The following messages are sent between a client and an SMTP server on port 25 in the following order: 1. Client sends the "EHLO command with an argument equal to the hostname of the machine initiating the connection on port 25 2. Server sends an ack or a reject 3. Client sends the MAIL command with the return address for the message, which has the following form mail to:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
