public abstract class Transport extends Service
Modifier | Constructor and Description |
---|---|
protected |
Transport(MailSession session) |
Modifier and Type | Method and Description |
---|---|
static void |
send(Message message)
Send a message.
|
static void |
send(Message message,
MailSession session)
Send a message.
|
abstract void |
sendMessage(Message message) |
close, connect, connect, protocolConnect
protected Transport(MailSession session)
public static void send(Message message) throws MessagingException, AuthenticationException
message
- the message to sendMessagingException
AuthenticationException
public static void send(Message message, MailSession session) throws MessagingException, AuthenticationException
message
- the message to sendsession
- the MailSession to be usedMessagingException
AuthenticationException
public abstract void sendMessage(Message message) throws MessagingException
MessagingException