Codota Logo
SendMailJob.createMailInfo
Code IndexAdd Codota to your IDE (free)

How to use
createMailInfo
method
in
org.quartz.jobs.ee.mail.SendMailJob

Best Java code snippets using org.quartz.jobs.ee.mail.SendMailJob.createMailInfo (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: quartz-scheduler/quartz

/**
 * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
 */
public void execute(JobExecutionContext context)
  throws JobExecutionException {
  JobDataMap data = context.getMergedJobDataMap();
  MailInfo mailInfo = populateMailInfo(data, createMailInfo());
  
  getLog().info("Sending message " + mailInfo);
  try {
    MimeMessage mimeMessage = prepareMimeMessage(mailInfo);
    
    Transport.send(mimeMessage);
  } catch (MessagingException e) {
    throw new JobExecutionException("Unable to send mail: " + mailInfo,
        e, false);
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
 */
public void execute(JobExecutionContext context)
  throws JobExecutionException {
  JobDataMap data = context.getMergedJobDataMap();
  MailInfo mailInfo = populateMailInfo(data, createMailInfo());
  
  getLog().info("Sending message " + mailInfo);
  try {
    MimeMessage mimeMessage = prepareMimeMessage(mailInfo);
    
    Transport.send(mimeMessage);
  } catch (MessagingException e) {
    throw new JobExecutionException("Unable to send mail: " + mailInfo,
        e, false);
  }
}
origin: quartz/quartz-all

/**
 * @see org.quartz.Job#execute(org.quartz.JobExecutionContext)
 */
public void execute(JobExecutionContext context)
  throws JobExecutionException {
  JobDataMap data = context.getMergedJobDataMap();
  MailInfo mailInfo = populateMailInfo(data, createMailInfo());
  
  getLog().info("Sending message " + mailInfo);
  try {
    MimeMessage mimeMessage = prepareMimeMessage(mailInfo);
    
    Transport.send(mimeMessage);
  } catch (MessagingException e) {
    throw new JobExecutionException("Unable to send mail: " + mailInfo,
        e, false);
  }
}
org.quartz.jobs.ee.mailSendMailJobcreateMailInfo

Popular methods of SendMailJob

  • getLog
  • getMailSession
  • getOptionalParm
  • getRequiredParm
  • populateMailInfo
  • prepareMimeMessage
  • setMimeMessageContent

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now