Class DirectImmediateSender

  • All Implemented Interfaces:
    ImmediateSender

    public class DirectImmediateSender
    extends Object
    implements ImmediateSender
    DirectImmediateSender synchronously sends a mail directly to an SMTP server of a single remote domain, which may include attempting delivery to more than one MX hosts of the domain until a working one is found.

    The remote domain is specified by the remote part of the recipient addresses, which must be the same for all recipients in case of this implementation.

    The receiving SMTP servers are usually specified by the MX records of the remote domain, except if the remote part is a literal address, or the domain has an implicit MX record only.

    If it cannot transmit the mail to any of the MX hosts of the domain, then it throws an exception, it does not retry later.

    TODO: if a recipient is rejected because of a transient failure, then it should be retried on another host.

    • Constructor Detail

      • DirectImmediateSender

        public DirectImmediateSender()