120 likes | 218 Views
Mail User Agent. Submitted by: Geetha Chittireddy. MUA - Introduction. A stand alone tool to compose and send mails. It sends mails to multiple recipients simultaneously. It includes some additional features like error checks, message-ids.
E N D
Mail User Agent Submitted by: Geetha Chittireddy
MUA - Introduction • A stand alone tool to compose and send mails. • It sends mails to multiple recipients simultaneously. • It includes some additional features like error checks, message-ids. • This features a simple front end and non expertise can use it.
MUA - Implementation • It is developed using Java Socket programming. • It uses the SMTP protocol. • This project is divided into four modules: MailClient, Message, Envelope and SMTPConnection. • Each of these modules are explained in the next slide.
SMTP • HELO<SP> <DOMAIN> <CRLF> • 250 OK • MAIL<SP> FROM: <Reverse-Path> <CRLF> • 250 OK • RCPT<SP> TO: <Forward-Path> <CRLF> • 250 OK • DATA<CRLF> • 354 DATA • QUIT<CRLF> • 221 QUIT
MUA – Implemetation contd.. • MailClient provides the GUI for entering the address fields and messages and sending the mail. • Message provides the headers and body and performs the valid check for sender and recipient addresses. • Envelope creates an envelope which holds the sender, recipients and the message information.
MUA – Implemetation contd.. • SMTPConnection initializes the socket connection, sends mails and closes the connection. • Sample code: // code to establish a connection connection = new Socket("skinner.villanova.edu",25); InputStream is = connection.getInputStream(); br = new BufferedReader(new InputStreamReader(is)); os = new DataOutputStream(connection.getOutputStream()); String line = br.readLine(); // Sample sendcommand instruction sendCommand("DATA",354);
MUA – Screenshot1 Mail Client Window
MUA – Screenshot2 Command prompt messages confirming the successful delivery of mail
MUA – Screenshot3 The mail in my inbox.. Notice the full header contains Message ID.
MUA – Conclusion • MUA is simple nice tool to send a mail to multiple recipients. • This tool has additional features like address validation. • This feature will make sure that the sender or recipient address are in a specific format. • It also generates a Message-ID which could be used in tracking the person using the MUA in case of misuse. • Message-ID is of the form user-id@ip-address • If I had more time I would extend this proj to include MIME attachments.
Thank you!!! - Geetha