Class MailSender

java.lang.Object
com.jalios.jcms.MailSender
All Implemented Interfaces:
JcmsConstants, JaliosConstants

@Deprecated public class MailSender extends Object implements JcmsConstants
Deprecated.
use MailMessage and MailManager instead
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:
Olivier Dedieu
  • 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

      @Deprecated public MailSender(SortedSet recipientSet, String bcc, String from, String subject, String[] content, boolean ack, Map files)
      Deprecated.
      use MailMessage and MailManager instead
      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

      @Deprecated public MailSender(SortedSet recipientSet, String bcc, String from, String subject, String[] content, boolean ack, Map files, String ackSubject, String ackContent)
      Deprecated.
      use MailMessage and MailManager instead
      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

      @Deprecated 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.
      use MailMessage and MailManager instead
      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
    • MailSender

      public MailSender(SortedSet recipientSet, String bcc, String from, String subject, String[] content, boolean ack, Map files, boolean checkDisable)
      Deprecated.
      Construc a Mail Sender with channel properties
      Parameters:
      recipientSet - a set of Member
      bcc - the bcc field
      from - fhe from field
      subject - the mail subject
      content - tje mail content
      ack - acknowledge
      files - a map of file
      checkDisable - check if the member account is disabled
  • Method Details

    • run

      public void run()
      Deprecated.
    • getAckSubject

      protected String getAckSubject()
      Deprecated.
    • getAckContent

      protected String getAckContent()
      Deprecated.