0% found this document useful (0 votes)
12 views9 pages

Jee JSP Working With Javamail

Uploaded by

riaz ahamed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views9 pages

Jee JSP Working With Javamail

Uploaded by

riaz ahamed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

JSP

Working with Java Mail


JavaMail
 The JavaMail is an API that is used to compose, write
and read electronic messages (emails).
 The JavaMail API provides protocol-independent and
platform-independent framework for sending and
receiving mails.
 The javax.mail and javax.mail.activation packages
contains the core classes of JavaMail API.
JavaMail
 The JavaMail facility can be applied to many events.
 It can be used at the time of registering the user
(sending notification such as thanks for your interest
to my site), forgot password (sending password to the
users email id), sending notifications for important
updates etc.
Understanding Protocols in JavaMail
 The protocols that underpin the workings of electronic
mail are well established and very mature.
 The following are the core protocol implementations
are bundled as part of the JavaMail distribution.
SMTP
 SMTP is an acronym for Simple Mail Transfer Protocol.
 It was first proposed back in 1982 and was designed
for the delivery of mail messages to servers.
Post Office Protocol
 POP is an acronym for Post Office Protocol, also known
as POP3.
 It provides a mechanism the mechanism by which the
majority of people collect their e-mail.
 It is then the responsibility of the user to take care of
the e-mail by filing it in some logical storage.
 It provides support for single mail box for each user.
 The POP server does not offer any storage facilities
beyond the mailbox that new mail is delivered to.
IMAP
 IMAP is an acronym for Internet Message Access
Protocol.
 IMAP is an advanced protocol for receiving messages.
It provides support for multiple mail box for each user,
in addition to, mailbox can be shared by multiple
users. It is defined in RFC 2060.
 IMAP is a communication protocol used between the
user and the server and is only responsible for the
reading and retrieval of messages.
 It is not used for the delivery of e-mail between
servers.
MIME
 Multiple Internet Mail Extension (MIME) tells the
browser what is being sent e.g. attachment, format of
the messages etc.
 It is not known as mail transfer protocol but it is used
by the mail program.
NNTP and Others
 There are many protocols that are provided by third-
party providers.
 Some of them are Network News Transfer Protocol
(NNTP), Secure Multipurpose Internet Mail Extensions
(S/MIME) etc.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy