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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.String
getAckContent()
Deprecated.protected java.lang.String
getAckSubject()
Deprecated.void
run()
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
-
-