Class MailToHostTransmitter
- Object
-
- mireka.transmission.immediate.host.MailToHostTransmitter
-
public class MailToHostTransmitter extends ObjectMailToHostTransmitter transmits a mail to a specific host specified by its IP address.
-
-
Constructor Summary
Constructors Constructor Description MailToHostTransmitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutgoingConnectionsRegistrygetOutgoingConnectionRegistry()voidsetLogIdFactory(LogIdFactory logIdFactory)voidsetOutgoingConnectionRegistry(OutgoingConnectionsRegistry outgoingConnectionRegistry)voidtransmit(Mail mail, SmtpClient client)Delivers the mail to the SMTP server running on the specified host.
-
-
-
Method Detail
-
transmit
public void transmit(Mail mail, SmtpClient client) throws SendException, RecipientsWereRejectedException, PostponeException
Delivers the mail to the SMTP server running on the specified host.- Parameters:
client- an unconnected, but otherwise fully initializedSmtpClient.- Throws:
PostponeException- if it has not even tried connecting to the host, because it is likely that the host is busy at this moment.SendExceptionRecipientsWereRejectedException
-
setOutgoingConnectionRegistry
public void setOutgoingConnectionRegistry(OutgoingConnectionsRegistry outgoingConnectionRegistry)
- Category:
- GETSET
-
getOutgoingConnectionRegistry
public OutgoingConnectionsRegistry getOutgoingConnectionRegistry()
- Category:
- GETSET
-
setLogIdFactory
public void setLogIdFactory(LogIdFactory logIdFactory)
- Category:
- GETSET
-
-