com.jalios.util
Class MailSender

java.lang.Object
  extended by com.jalios.util.MailSender
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
MailSender

Deprecated.

@Deprecated
public class MailSender
extends Object
implements Runnable

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.

Version:
$Revision: 27751 $
Author:
Jean-Philippe Encausse

Field Summary
protected  boolean ack
          Deprecated.  
protected  String ackContent
          Deprecated.  
protected  String ackSubject
          Deprecated.  
protected static int ASCII_WIDTH
          Deprecated.  
protected  Set badEmailSet
          Deprecated.  
protected  String bcc
          Deprecated.  
protected  String[] content
          Deprecated.  
protected  long duration
          Deprecated.  
protected  Map files
          Deprecated.  
protected  String from
          Deprecated.  
protected  Set goodEmailSet
          Deprecated.  
protected  String host
          Deprecated.  
protected  String login
          Deprecated.  
protected  String password
          Deprecated.  
protected  int port
          Deprecated.  
protected  SortedSet recipientSet
          Deprecated.  
static String REVISION
          Deprecated.  
protected  boolean sendAll
          Deprecated.  
protected  String subject
          Deprecated.  
 
Constructor Summary
MailSender(SortedSet recipientSet, String bcc, String from, String subject, String[] content, boolean ack, Map files)
          Deprecated.  
MailSender(SortedSet recipientSet, String bcc, String from, String subject, String[] content, boolean ack, Map files, String ackSubject, String ackContent)
          Deprecated.  
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.  
 
Method Summary
protected  String getAckContent()
          Deprecated.  
protected  String getAckSubject()
          Deprecated.  
 void run()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
Deprecated. 
See Also:
Constant Field Values

ASCII_WIDTH

protected static final int ASCII_WIDTH
Deprecated. 
See Also:
Constant Field Values

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 Detail

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 Detail

run

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

getAckSubject

protected String getAckSubject()
Deprecated. 

getAckContent

protected String getAckContent()
Deprecated. 


Copyright © 2001-2010 Jalios SA. All Rights Reserved.