Save This Page
Home » quartz-1.6.0 » org.quartz.jobs.ee » mail » [javadoc | source]
org.quartz.jobs.ee.mail
public class: SendMailJob [javadoc | source]
java.lang.Object
   org.quartz.jobs.ee.mail.SendMailJob

All Implemented Interfaces:
    Job

A Job which sends an e-mail with the configured content to the configured recipient.

Nested Class Summary:
protected static class  SendMailJob.MailInfo   
Field Summary
public static final  String PROP_SMTP_HOST    The host name of the smtp server. REQUIRED. 
public static final  String PROP_RECIPIENT    The e-mail address to send the mail to. REQUIRED. 
public static final  String PROP_CC_RECIPIENT    The e-mail address to cc the mail to. Optional. 
public static final  String PROP_SENDER    The e-mail address to claim the mail is from. REQUIRED. 
public static final  String PROP_REPLY_TO    The e-mail address the message should say to reply to. Optional. 
public static final  String PROP_SUBJECT    The subject to place on the e-mail. REQUIRED. 
public static final  String PROP_MESSAGE    The e-mail message body. REQUIRED. 
public static final  String PROP_CONTENT_TYPE    The message content type. For example, "text/html". Optional. 
Method from org.quartz.jobs.ee.mail.SendMailJob Summary:
createMailInfo,   execute,   getLog,   getMailSession,   getOptionalParm,   getRequiredParm,   populateMailInfo,   prepareMimeMessage,   setMimeMessageContent
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.quartz.jobs.ee.mail.SendMailJob Detail:
 protected SendMailJob.MailInfo createMailInfo() 
 public  void execute(JobExecutionContext context) throws JobExecutionException 
 protected Log getLog() 
 protected Session getMailSession(SendMailJob.MailInfo mailInfo) throws MessagingException 
 protected String getOptionalParm(JobDataMap data,
    String property) 
 protected String getRequiredParm(JobDataMap data,
    String property,
    String constantName) 
 protected SendMailJob.MailInfo populateMailInfo(JobDataMap data,
    SendMailJob.MailInfo mailInfo) 
 protected MimeMessage prepareMimeMessage(SendMailJob.MailInfo mailInfo) throws MessagingException 
 protected  void setMimeMessageContent(MimeMessage mimeMessage,
    SendMailJob.MailInfo mailInfo) throws MessagingException