Class MailSender

  • All Implemented Interfaces:
    JcmsConstants, JaliosConstants

    @Deprecated
    public class MailSender
    extends java.lang.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 Detail

      • recipientSet

        protected java.util.SortedSet recipientSet
        Deprecated.
      • bcc

        protected java.lang.String bcc
        Deprecated.
      • from

        protected java.lang.String from
        Deprecated.
      • subject

        protected java.lang.String subject
        Deprecated.
      • content

        protected java.lang.String[] content
        Deprecated.
      • ack

        protected boolean ack
        Deprecated.
      • files

        protected java.util.Map files
        Deprecated.
      • host

        protected java.lang.String host
        Deprecated.
      • port

        protected int port
        Deprecated.
      • login

        protected java.lang.String login
        Deprecated.
      • password

        protected java.lang.String password
        Deprecated.
      • ackSubject

        protected java.lang.String ackSubject
        Deprecated.
      • ackContent

        protected java.lang.String ackContent
        Deprecated.
      • goodEmailSet

        protected java.util.Set goodEmailSet
        Deprecated.
      • badEmailSet

        protected java.util.Set badEmailSet
        Deprecated.
      • duration

        protected long duration
        Deprecated.
      • sendAll

        protected boolean sendAll
        Deprecated.
    • Constructor Detail

      • MailSender

        @Deprecated
        public MailSender​(java.util.SortedSet recipientSet,
                          java.lang.String bcc,
                          java.lang.String from,
                          java.lang.String subject,
                          java.lang.String[] content,
                          boolean ack,
                          java.util.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​(java.util.SortedSet recipientSet,
                          java.lang.String bcc,
                          java.lang.String from,
                          java.lang.String subject,
                          java.lang.String[] content,
                          boolean ack,
                          java.util.Map files,
                          java.lang.String ackSubject,
                          java.lang.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​(java.util.SortedSet recipientSet,
                          java.lang.String bcc,
                          java.lang.String from,
                          java.lang.String subject,
                          java.lang.String[] content,
                          boolean ack,
                          java.util.Map files,
                          java.lang.String ackSubject,
                          java.lang.String ackContent,
                          java.lang.String host,
                          int port,
                          java.lang.String login,
                          java.lang.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​(java.util.SortedSet recipientSet,
                          java.lang.String bcc,
                          java.lang.String from,
                          java.lang.String subject,
                          java.lang.String[] content,
                          boolean ack,
                          java.util.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 Detail

      • run

        public void run()
        Deprecated.
      • getAckSubject

        protected java.lang.String getAckSubject()
        Deprecated.
      • getAckContent

        protected java.lang.String getAckContent()
        Deprecated.