| 程序包 | 说明 |
|---|---|
| javax.mail |
The JavaMail™ API
provides classes that model a mail system.
|
| net.iotgw.mail.util.logging |
Contains JavaMail™ extensions for
the Java™ platform's core logging
facilities.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Session |
Session.getDefaultInstance(Properties props,
Authenticator authenticator)
Get the default Session object.
|
static Session |
Session.getInstance(Properties props,
Authenticator authenticator)
Get a new Session object.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Authenticator |
MailHandler.getAuthenticator()
Gets the Authenticator used to login to the email server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
MailHandler.setAuthenticator(Authenticator auth)
Sets the Authenticator used to login to the email server.
|
Copyright © 2021 Oracle. All rights reserved.