Write a pseudocode for sendEmail functionSolutionsendEmail F
     Write a pseudocode for sendEmail function 
  
  Solution
sendEmail Function psudocode and protocol:-
To send a message by email , the SMTP (Simple Mail Transfer Protocol) client and server conduct a \"conversation.\" The SMTP protocol defines the formats of the messages making up the conversation and the order in which they occur.
First a connection is established between client and the server.
Once connection is established, the SMTP checks the validity of sender\'s email.
If it is valis, then it checks the receivers email.
The client now sends the data line by line, ending with the 5-character sequence <CRLF>.<CRLF> line, upon which the receiver will acknowledge with a 250 OK, or an appropriate error message if anything went wrong.

