23-05-2012, 11:13 AM
Java Mail
javamail.ppt (Size: 117.5 KB / Downloads: 249)
Electronic Mail Concepts
JavaMail Classes
Examples of Sending JavaMail
JavaBeans Activation Framework
Multi-part Messages
Example of Sending Attachments
Other JavaMail Classes
Installing JavaMail
Some Key Terms
Protocol: An agreed upon format for transmitting data between two devices, including codes for indicating completion of transmission and acknowledgement of data receipt
User-Agent: E-mail client that allows user to create e-mail to be sent or view e-mail that has been received
Mail Transfer Agent (MTA): Performs exchange of e-mail over TCP
Envelope
Used by MTA to deliver messages
Contains source and destination addresses
Example:
MAIL From:mm6[at]andrew.cmu.edu
RCPT To:dmedvan[at]andrew.cmu.edu
Headers
Used by user-agent to describe message
Written in ASCII text
Each field contains a name followed by a colon, followed by the field value
Whitespace may only appear at the beginning of a line that continues a field from a prior line
A blank line indicates the end of the headers
Types of Message Bodies
One or more lines of NVT ASCII (7-bit variant) text representing actual message
Multipurpose Internet Mail Extension (MIME): Common representation for e-mails sent in binary (attachments, embedded graphics, or non-ASCII characters)