public class MailToHostTransmitter
extends Object
| Constructor and Description |
|---|
MailToHostTransmitter() |
| Modifier and Type | Method and Description |
|---|---|
OutgoingConnectionsRegistry |
getOutgoingConnectionRegistry() |
void |
setLogIdFactory(LogIdFactory logIdFactory) |
void |
setOutgoingConnectionRegistry(OutgoingConnectionsRegistry outgoingConnectionRegistry) |
void |
transmit(Mail mail,
SmtpClient client)
Delivers the mail to the SMTP server running on the specified host.
|
public void transmit(Mail mail, SmtpClient client) throws SendException, RecipientsWereRejectedException, PostponeException
client - an unconnected, but otherwise fully initialized
SmtpClient.PostponeException - if it has not even tried connecting to the host, because it
is likely that the host is busy at this moment.SendExceptionRecipientsWereRejectedExceptionpublic void setOutgoingConnectionRegistry(OutgoingConnectionsRegistry outgoingConnectionRegistry)
public OutgoingConnectionsRegistry getOutgoingConnectionRegistry()
public void setLogIdFactory(LogIdFactory logIdFactory)