Class MailSender

java.lang.Object
com.jalios.util.MailSender
All Implemented Interfaces:
Runnable

@Deprecated public class MailSender extends Object implements Runnable
Deprecated.
Only works with javax mail API. Use jplatform MAilMessage and MailManager to have more features.
This class spawns a thread which sends a mail to a set of recipients. Once all the mail has been sent, it can send an acknowledge.
Author:
Jean-Philippe Encausse
  • Field Details

    • ASCII_WIDTH

      protected static final int ASCII_WIDTH
      Deprecated.
      See Also:
    • recipientSet

      protected SortedSet recipientSet
      Deprecated.
    • bcc

      protected String bcc
      Deprecated.
    • from

      protected String from
      Deprecated.
    • subject

      protected String subject
      Deprecated.
    • content

      protected String[] content
      Deprecated.
    • ack

      protected boolean ack
      Deprecated.
    • files

      protected Map files
      Deprecated.
    • host

      protected String host
      Deprecated.
    • port

      protected int port
      Deprecated.
    • login

      protected String login
      Deprecated.
    • password

      protected String password
      Deprecated.
    • ackSubject

      protected String ackSubject
      Deprecated.
    • ackContent

      protected String ackContent
      Deprecated.
    • goodEmailSet

      protected Set goodEmailSet
      Deprecated.
    • badEmailSet

      protected Set badEmailSet
      Deprecated.
    • duration

      protected long duration
      Deprecated.
    • sendAll

      protected boolean sendAll
      Deprecated.
  • Constructor Details

    • MailSender

      public MailSender(SortedSet recipientSet, String bcc, String from, String subject, String[] content, boolean ack, Map files)
      Deprecated.
      Parameters:
      recipientSet - a Set of String email
      bcc - an email list sperated by ','
      from - an email
      subject - a subject
      content - a content
      ack - send an acknoledge
      files - a Map of attachement File / fileId
    • MailSender

      public MailSender(SortedSet recipientSet, String bcc, String from, String subject, String[] content, boolean ack, Map files, String ackSubject, String ackContent)
      Deprecated.
      Parameters:
      recipientSet - a Set of String email
      bcc - an email list sperated by ','
      from - an email
      subject - a subject
      content - a content
      ack - send an acknoledge
      files - a Map of attachement File / fileId
      ackSubject - the acknoledge Subject
      ackContent - the acknoledge Content
    • MailSender

      public MailSender(SortedSet recipientSet, String bcc, String from, String subject, String[] content, boolean ack, Map files, String ackSubject, String ackContent, String host, int port, String login, String password)
      Deprecated.
      Parameters:
      recipientSet - a Set of String email
      bcc - an email list sperated by ','
      from - an email
      subject - a subject
      content - a content
      ack - send an acknoledge
      files - a Map of attachement File / fileId
      ackSubject - the acknoledge Subject
      ackContent - the acknoledge Content
      host - the smtp host
      port - the smtp port
      login - the smtp login
      password - the smtp password
  • Method Details

    • run

      public void run()
      Deprecated.
      Specified by:
      run in interface Runnable
    • getAckSubject

      protected String getAckSubject()
      Deprecated.
    • getAckContent

      protected String getAckContent()
      Deprecated.