Package com.jalios.util
Class MailSender
- java.lang.Object
-
- com.jalios.util.MailSender
-
- All Implemented Interfaces:
java.lang.Runnable
@Deprecated public class MailSender extends java.lang.Object implements java.lang.RunnableDeprecated.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 booleanackDeprecated.protected java.lang.StringackContentDeprecated.protected java.lang.StringackSubjectDeprecated.protected static intASCII_WIDTHDeprecated.protected java.util.SetbadEmailSetDeprecated.protected java.lang.StringbccDeprecated.protected java.lang.String[]contentDeprecated.protected longdurationDeprecated.protected java.util.MapfilesDeprecated.protected java.lang.StringfromDeprecated.protected java.util.SetgoodEmailSetDeprecated.protected java.lang.StringhostDeprecated.protected java.lang.StringloginDeprecated.protected java.lang.StringpasswordDeprecated.protected intportDeprecated.protected java.util.SortedSetrecipientSetDeprecated.protected booleansendAllDeprecated.protected java.lang.StringsubjectDeprecated.
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.StringgetAckContent()Deprecated.protected java.lang.StringgetAckSubject()Deprecated.voidrun()Deprecated.
-
-
-
Field Detail
-
ASCII_WIDTH
protected static final int ASCII_WIDTH
Deprecated.- See Also:
- Constant Field Values
-
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 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(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 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(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 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
-
-