Class EmailSender


  • public class EmailSender
    extends java.lang.Object
    • Constructor Detail

      • EmailSender

        public EmailSender​(SmtpServerConnection conn)
        Construct an Email sender with the specified SMTP hostname, SMTP port, SMTP username, and SMTP password.
        Parameters:
        hostname - The SMTP hostname.
        port - The SMTP port.
        username - The SMTP username.
        password - The SMTP password.
    • Method Detail

      • send

        public EmailSender.SendStatus send​(Email email)
        Send the specified email. startTls
        Parameters:
        email - The email.
        Returns:
        a SendStatus object to indicate the success of delivery.