Name

javax.mail.Session — This is a final class that defines a complete mail session.

Synopsis

public final class Session extends java.lang.Object {
    // Public Methods
            public static Session getInstance(java.util.Properties props,
             Authenticator authenticator);
            public static Session getDefaultInstance(java.util.Properties props,
             Authenticator authenticator);
            public void setDebug(boolean debug);
            public boolean getDebug();
            public Provider[] getProviders();
            public Provider getProvider(java.lang.String protocol) throws
             NoSuchProviderException;
            public void setProvider(Provider provider) throws
             NoSuchProviderException;
            public Store getStore() throws
             NoSuchProviderException;
            public Store getStore(java.lang.String protocol) throws
             NoSuchProviderException;
            public Store getStore(URLName url) throws NoSuchProviderException;
            public Store getStore(Provider provider) throws
             NoSuchProviderException;
            public Folder getFolder(URLName url) throws MessagingException;
            public Transport getTransport() throws
             NoSuchProviderException;
            public Transport getTransport(java.lang.String protocol) throws
             NoSuchProviderException;
            public Transport getTransport(URLName url) throws
             NoSuchProviderException;
            public Transport getTransport(Provider provider) throws
             NoSuchProviderException;
            public Transport getTransport(Address address) throws
             NoSuchProviderException;
            public void
             setPasswordAuthentication(URLName url, PasswordAuthentication pw);
            public PasswordAuthentication getpasswordAuthentication(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.