Class EmailHandler

java.lang.Object
bpmn.handler.email_handler.EmailHandler
All Implemented Interfaces:
TaskHandler
Direct Known Subclasses:
SqlAttachmentsEmailHandler

public class EmailHandler extends Object implements TaskHandler
Author:
Tim Urmancheev

Handler for sending emails via SMTP-server SmtpConfiguration.

The handler behaves differently depending on whether DAO is set or not. When no DAO configured, "to" settings field is treated as an array of email addresses. Single email would be sent to all of them. If DAO is set, then actual email addresses (as well as copies and carbon copies) would be retrieved via it. In this case, "to" field is treated as an address of database cell where data is stored.

  • Field Details

    • smtpConfiguration

      public SmtpConfiguration smtpConfiguration
    • dao

      public LoadDao dao
    • to

      public String[] to
    • copy

      public String[] copy
    • hiddenCopy

      public String[] hiddenCopy
    • subject

      public String subject
    • body

      public String body
    • attachments

      public Attachment[] attachments
    • addressArrayDelimiter

      public String addressArrayDelimiter
    • bodyArrayDelimiter

      public String bodyArrayDelimiter
    • emailListeners

      public EmailListener[] emailListeners
  • Constructor Details

    • EmailHandler

      public EmailHandler()
  • Method Details