|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.jobs.ee.mail.SendMailJob
public class SendMailJob
A Job which sends an e-mail with the configured content to the configured recipient. Arbitrary mail.smtp.xxx settings can be added to job data and they will be passed along the mail session
| Nested Class Summary | |
|---|---|
protected static class |
SendMailJob.MailInfo
|
| Field Summary | |
|---|---|
static String |
PROP_CC_RECIPIENT
The e-mail address to cc the mail to. |
static String |
PROP_CONTENT_TYPE
The message content type. |
static String |
PROP_MESSAGE
The e-mail message body. |
static String |
PROP_PASSWORD
Password for authenticated session. |
static String |
PROP_RECIPIENT
The e-mail address to send the mail to. |
static String |
PROP_REPLY_TO
The e-mail address the message should say to reply to. |
static String |
PROP_SENDER
The e-mail address to claim the mail is from. |
static String |
PROP_SMTP_HOST
The host name of the smtp server. |
static String |
PROP_SUBJECT
The subject to place on the e-mail. |
static String |
PROP_USERNAME
Username for authenticated session. |
| Constructor Summary | |
|---|---|
SendMailJob()
|
|
| Method Summary | |
|---|---|
protected SendMailJob.MailInfo |
createMailInfo()
|
void |
execute(org.quartz.JobExecutionContext context)
|
protected org.slf4j.Logger |
getLog()
|
protected javax.mail.Session |
getMailSession(SendMailJob.MailInfo mailInfo)
|
protected String |
getOptionalParm(org.quartz.JobDataMap data,
String property)
|
protected String |
getRequiredParm(org.quartz.JobDataMap data,
String property,
String constantName)
|
protected SendMailJob.MailInfo |
populateMailInfo(org.quartz.JobDataMap data,
SendMailJob.MailInfo mailInfo)
|
protected javax.mail.internet.MimeMessage |
prepareMimeMessage(SendMailJob.MailInfo mailInfo)
|
protected void |
setMimeMessageContent(javax.mail.internet.MimeMessage mimeMessage,
SendMailJob.MailInfo mailInfo)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_SMTP_HOST
public static final String PROP_RECIPIENT
public static final String PROP_CC_RECIPIENT
public static final String PROP_SENDER
public static final String PROP_REPLY_TO
public static final String PROP_SUBJECT
public static final String PROP_MESSAGE
public static final String PROP_CONTENT_TYPE
public static final String PROP_USERNAME
public static final String PROP_PASSWORD
| Constructor Detail |
|---|
public SendMailJob()
| Method Detail |
|---|
public void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
execute in interface org.quartz.Joborg.quartz.JobExecutionExceptionJob.execute(org.quartz.JobExecutionContext)protected org.slf4j.Logger getLog()
protected javax.mail.internet.MimeMessage prepareMimeMessage(SendMailJob.MailInfo mailInfo)
throws javax.mail.MessagingException
javax.mail.MessagingException
protected void setMimeMessageContent(javax.mail.internet.MimeMessage mimeMessage,
SendMailJob.MailInfo mailInfo)
throws javax.mail.MessagingException
javax.mail.MessagingException
protected javax.mail.Session getMailSession(SendMailJob.MailInfo mailInfo)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionprotected SendMailJob.MailInfo createMailInfo()
protected SendMailJob.MailInfo populateMailInfo(org.quartz.JobDataMap data,
SendMailJob.MailInfo mailInfo)
protected String getRequiredParm(org.quartz.JobDataMap data,
String property,
String constantName)
protected String getOptionalParm(org.quartz.JobDataMap data,
String property)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||