Class EmailDeliverer

java.lang.Object
com.webmethods.caf.faces.data.email.EmailDeliverer

public class EmailDeliverer extends Object
Simple Provider to make it easy to send email through the JavaMail support provided by the server.
Since:
8.0
  • Field Details

    • errorHandler

      protected IErrorHandler errorHandler
    • sessionJNDIName

      protected String sessionJNDIName
    • authTypeJNDIName

      protected String authTypeJNDIName
    • toAddresses

      protected String toAddresses
    • ccAddresses

      protected String ccAddresses
    • bccAddresses

      protected String bccAddresses
    • replyToAddress

      protected String replyToAddress
    • subject

      protected String subject
    • body

      protected String body
    • contentType

      protected String contentType
    • fromAddress

      protected String fromAddress
    • senderAddress

      protected String senderAddress
  • Constructor Details

    • EmailDeliverer

      public EmailDeliverer()
  • Method Details

    • getErrorHandler

      public IErrorHandler getErrorHandler()
    • setErrorHandler

      public void setErrorHandler(IErrorHandler errorHandler)
    • getSessionJNDIName

      public String getSessionJNDIName()
      Get the session JNDI name. Default is "mail/Session".
      Returns:
      The sessionJNDIName
    • setSessionJNDIName

      public void setSessionJNDIName(String sessionJNDIName)
      Set the session JNDI name.
      Parameters:
      sessionJNDIName - The session JNDI Name.
    • getToAddresses

      public String getToAddresses()
      Get the to addresses for this email.
      Returns:
      The to addresses
    • setToAddresses

      public void setToAddresses(String toAddresses)
      Set the to addresses for this email.
      Parameters:
      toAddresses - The to addresses.
    • getCcAddresses

      public String getCcAddresses()
      Get the carbon copy addresses for this email.
      Returns:
      String The carbon copy addresses.
    • setCcAddresses

      public void setCcAddresses(String ccAddresses)
      Set the carbon copy addresses for this email.
      Parameters:
      ccAddresses - The carbon copy addresses.
    • getBccAddresses

      public String getBccAddresses()
      Get the blind copy addresses for this email.
      Returns:
      The blind copy addresses.
    • setBccAddresses

      public void setBccAddresses(String bccAddresses)
      Set the blind copy addresses for this email.
      Parameters:
      bccAddresses - The blind copy addresses.
    • getFromAddress

      public String getFromAddress()
      Get the from address for this email.
      Returns:
      The from address.
    • setFromAddress

      public void setFromAddress(String fromAddress)
      Set the from address for this email.
      Parameters:
      fromAddress - The from address.
    • getReplyToAddress

      public String getReplyToAddress()
      Set the reply to address for this email.
      Returns:
      The reply to Address.
    • setReplyToAddress

      public void setReplyToAddress(String replyToAddress)
      Set the reply to address for this email.
      Parameters:
      replyToAddress - The reply to Address.
    • getSenderAddress

      public String getSenderAddress()
      Get the sender address for this email.
      Returns:
      The sender address.
    • setSenderAddress

      public void setSenderAddress(String senderAddress)
      Set the sender address for this email.
      Parameters:
      senderAddress - The sender address.
    • getSubject

      public String getSubject()
      Get the subject text for this email.
      Returns:
      The subject text.
    • setSubject

      public void setSubject(String subject)
      Set the subject text for this email.
      Parameters:
      subject - the subject to set
    • getBody

      public String getBody()
      Get the body text for this email.
      Returns:
      The body text.
    • setBody

      public void setBody(String body)
      Set the body text for this email.
      Parameters:
      body - The body text.
    • getContentType

      public String getContentType()
      Get the content type for this email.
      Returns:
      The content type.
    • setContentType

      public void setContentType(String contentType)
      Set the content type for this email.
      Parameters:
      contentType - The content type.
    • deliverEmail

      public String deliverEmail()
      Action handler that delivers an email message given the specified data.
      Returns:
      Always null which will signal JSF to stay on the same UI page
    • addExtraBodyParts

      protected void addExtraBodyParts(MimeMultipart multipart) throws Exception
      Subclasses may override to embed images or other attachments in the mime message.
      Parameters:
      multipart - The mime message.
      Throws:
      Exception
    • createBodyDataSource

      protected DataSource createBodyDataSource()
      Factory method that can be overridden to provide a different implementation.
      Returns:
      DataSource A new MessageBodyDataSource constructed from the current body and type.