Package | Description |
---|---|
javax.mail |
The JavaMailTM API
provides classes that model a mail system.
|
javax.mail.internet |
Classes specific to Internet mail systems.
|
Modifier and Type | Field and Description |
---|---|
protected Session |
Service.session
The session from which this service was created.
|
protected Session |
Message.session
The Session object for this Message
|
Modifier and Type | Method and Description |
---|---|
static Session |
Session.getDefaultInstance(Properties props)
Get the default Session object.
|
static Session |
Session.getDefaultInstance(Properties props,
Authenticator authenticator)
Get the default Session object.
|
static Session |
Session.getInstance(Properties props)
Get a new Session object.
|
static Session |
Session.getInstance(Properties props,
Authenticator authenticator)
Get a new Session object.
|
Session |
MessageContext.getSession()
Return the Session we're operating in.
|
Session |
Message.getSession()
Return the Session used when this message was created.
|
Constructor and Description |
---|
Message(Session session)
Constructor that takes a Session.
|
Service(Session session,
URLName urlname)
Constructor.
|
Store(Session session,
URLName urlname)
Constructor.
|
Transport(Session session,
URLName urlname)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected MimeMessage |
MimeMessage.createMimeMessage(Session session)
Create and return a MimeMessage object.
|
static InternetAddress |
InternetAddress.getLocalAddress(Session session)
Return an InternetAddress object representing the current user.
|
Constructor and Description |
---|
MimeMessage(Session session)
Default constructor.
|
MimeMessage(Session session,
InputStream is)
Constructs a MimeMessage by reading and parsing the data from the
specified MIME InputStream.
|
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.