com.jalios.util
Class MailSender
java.lang.Object
com.jalios.util.MailSender
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- MailSender
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: 14756 $
- Author:
- Jean-Philippe Encausse
Constructor Summary |
MailSender(SortedSet recipientSet,
String bcc,
String from,
String subject,
String[] content,
boolean ack,
Map files)
|
MailSender(SortedSet recipientSet,
String bcc,
String from,
String subject,
String[] content,
boolean ack,
Map files,
String ackSubject,
String ackContent)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVISION
public static final String REVISION
- See Also:
- Constant Field Values
ASCII_WIDTH
protected static final int ASCII_WIDTH
- See Also:
- Constant Field Values
recipientSet
protected SortedSet recipientSet
bcc
protected String bcc
from
protected String from
subject
protected String subject
content
protected String[] content
ack
protected boolean ack
files
protected Map files
host
protected String host
port
protected int port
login
protected String login
password
protected String password
ackSubject
protected String ackSubject
ackContent
protected String ackContent
goodEmailSet
protected Set goodEmailSet
badEmailSet
protected Set badEmailSet
duration
protected long duration
sendAll
protected boolean sendAll
MailSender
public MailSender(SortedSet recipientSet,
String bcc,
String from,
String subject,
String[] content,
boolean ack,
Map files)
- Parameters:
recipientSet
- a Set of String emailbcc
- an email list sperated by ','from
- an emailsubject
- a subjectcontent
- a contentack
- send an acknoledgefiles
- 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)
- Parameters:
recipientSet
- a Set of String emailbcc
- an email list sperated by ','from
- an emailsubject
- a subjectcontent
- a contentack
- send an acknoledgefiles
- a Map of attachement File / fileIdackSubject
- the acknoledge SubjectackContent
- 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)
- Parameters:
recipientSet
- a Set of String emailbcc
- an email list sperated by ','from
- an emailsubject
- a subjectcontent
- a contentack
- send an acknoledgefiles
- a Map of attachement File / fileIdackSubject
- the acknoledge SubjectackContent
- the acknoledge Contenthost
- the smtp hostport
- the smtp portlogin
- the smtp loginpassword
- the smtp password
run
public void run()
- Specified by:
run
in interface Runnable
getAckSubject
protected String getAckSubject()
getAckContent
protected String getAckContent()
Copyright © 2001-2007 Jalios SA. All Rights Reserved.