Name
javax.mail.Session — This is a final class that defines a complete mail session.
Synopsis
public final classSession
extends java.lang.Object { // Public Methods public static SessiongetInstance
(java.util.Properties props, Authenticator authenticator); public static SessiongetDefaultInstance
(java.util.Properties props, Authenticator authenticator); public voidsetDebug
(boolean debug); public booleangetDebug
(); public Provider[]getProviders
(); public ProvidergetProvider
(java.lang.String protocol) throws NoSuchProviderException; public voidsetProvider
(Provider provider) throws NoSuchProviderException; public StoregetStore()
throws NoSuchProviderException; public StoregetStore
(java.lang.String protocol) throws NoSuchProviderException; public StoregetStore
(URLName url) throws NoSuchProviderException; public StoregetStore
(Provider provider) throws NoSuchProviderException; public FoldergetFolder
(URLName url) throws MessagingException; public TransportgetTransport()
throws NoSuchProviderException; public TransportgetTransport
(java.lang.String protocol) throws NoSuchProviderException; public TransportgetTransport
(URLName url) throws NoSuchProviderException; public TransportgetTransport
(Provider provider) throws NoSuchProviderException; public TransportgetTransport
(Address address) throws NoSuchProviderException; public voidsetPasswordAuthentication
(URLName url, PasswordAuthentication pw); public PasswordAuthenticationgetpasswordAuthentication
(URLName url); public PasswordAuthentication ...
Get Programming Internet Email now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.