Class MailSender

  • All Implemented Interfaces:
    java.lang.Runnable

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

      Fields 
      Modifier and Type Field Description
      protected boolean ack
      Deprecated.
       
      protected java.lang.String ackContent
      Deprecated.
       
      protected java.lang.String ackSubject
      Deprecated.
       
      protected static int ASCII_WIDTH
      Deprecated.
       
      protected java.util.Set badEmailSet
      Deprecated.
       
      protected java.lang.String bcc
      Deprecated.
       
      protected java.lang.String[] content
      Deprecated.
       
      protected long duration
      Deprecated.
       
      protected java.util.Map files
      Deprecated.
       
      protected java.lang.String from
      Deprecated.
       
      protected java.util.Set goodEmailSet
      Deprecated.
       
      protected java.lang.String host
      Deprecated.
       
      protected java.lang.String login
      Deprecated.
       
      protected java.lang.String password
      Deprecated.
       
      protected int port
      Deprecated.
       
      protected java.util.SortedSet recipientSet
      Deprecated.
       
      protected boolean sendAll
      Deprecated.
       
      protected java.lang.String subject
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      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.
       
      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.
       
      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.
       
    • 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

        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.
        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​(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.
        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​(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.
        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 Detail

      • run

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

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

        protected java.lang.String getAckContent()
        Deprecated.