public class ErrorThrowingTransport
extends javax.mail.Transport
Transport
that throws an exception on an
attempt to send a message.Constructor and Description |
---|
ErrorThrowingTransport(javax.mail.Session session,
javax.mail.URLName urlname) |
Modifier and Type | Method and Description |
---|---|
void |
connect(String host,
String user,
String password) |
protected boolean |
protocolConnect(String host,
int port,
String user,
String password) |
void |
sendMessage(javax.mail.Message message,
javax.mail.Address[] addresses) |
addTransportListener, notifyTransportListeners, removeTransportListener, send, send
public ErrorThrowingTransport(javax.mail.Session session, javax.mail.URLName urlname)
public void connect(String host, String user, String password) throws javax.mail.MessagingException
connect
in class javax.mail.Service
javax.mail.MessagingException
protected boolean protocolConnect(String host, int port, String user, String password) throws javax.mail.MessagingException
protocolConnect
in class javax.mail.Service
javax.mail.MessagingException
public void sendMessage(javax.mail.Message message, javax.mail.Address[] addresses) throws javax.mail.MessagingException
sendMessage
in class javax.mail.Transport
javax.mail.MessagingException
Copyright © 2014–2018. All rights reserved.