public interface ImmediateSender
Modifier and Type | Method and Description |
---|---|
void |
send(Mail mail)
Synchronously transmits mail to a single domain.
|
boolean |
singleDomainOnly()
Returns true if the created
ImmediateSender requires that all
recipients of the mail to be sent have the same remote-part. |
boolean singleDomainOnly()
ImmediateSender
requires that all
recipients of the mail to be sent have the same remote-part.void send(Mail mail) throws SendException, RecipientsWereRejectedException, IllegalArgumentException, PostponeException
IllegalArgumentException
- if the domains of the recipients are not the same, or if the
recipient is the special global postmaster address, which has
no absolute domain.PostponeException
- if transmission to all of the hosts must be postponed,
because all of them are assumed to be busy at this moment.SendException
RecipientsWereRejectedException