java.lang.Object
i2p.susi.webmail.WebMail.EmailSender
All Implemented Interfaces:
Runnable
Enclosing class:
WebMail

private static class WebMail.EmailSenderextends Object implements Runnable
Threaded sending.
  • Field Details

    • sessionObject

      private final WebMail.SessionObject sessionObject
      The session sending the mail.
    • draft

      private final Draft draft
      The draft being sent.
    • host

      private final String host
      The SMTP host to connect to.
    • user

      private final String user
      The SMTP login user.
    • pass

      private final String pass
      The SMTP login password.
    • sender

      private final String sender
      The sender address to announce.
    • boundary

      private final String boundary
      The MIME boundary separating the parts.
    • port

      private final int port
      The SMTP port to connect to.
    • recipients

      private final List<String> recipients
      The addresses to send to.
    • body

      private final StringBuilder body
      The message body text.
    • attachments

      private final List<Attachment> attachments
      The attachments to include.
  • Constructor Details

    • EmailSender

      public EmailSender(WebMail.SessionObject so, Draft d, String s, List<String> recip, StringBuilder bod, List<Attachment> att, String b)
      Prepares to send one draft through SMTP.
      Parameters:
      so - the session sending the mail
      d - the draft to send
      s - the sender address
      recip - the addresses to send to
      bod - the body text
      att - the attachments to include
      b - the MIME boundary
  • Method Details

    • run

      public void run()
      Hands the queued draft to the SMTP relay and records the outcome.
      Specified by:
      run in interface Runnable