Class Email

    • Field Detail

      • m_Recipients

        protected EmailAddress[] m_Recipients
        the recipients.
      • m_BCC

        protected EmailAddress[] m_BCC
        the recipients (BCC).
      • m_Subject

        protected String m_Subject
        the subject.
      • m_Signature

        protected BaseText m_Signature
        the signature.
    • Constructor Detail

      • Email

        public Email()
    • Method Detail

      • setSender

        public void setSender​(EmailAddress value)
        Sets the sender.
        Parameters:
        value - the sender
      • getSender

        public EmailAddress getSender()
        Returns the sender.
        Returns:
        the sender
      • senderTipText

        public String senderTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setRecipients

        public void setRecipients​(EmailAddress[] value)
        Sets the recipients.
        Parameters:
        value - the recipients
      • getRecipients

        public EmailAddress[] getRecipients()
        Returns the recipients.
        Returns:
        the recipients
      • recipientsTipText

        public String recipientsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setCC

        public void setCC​(EmailAddress[] value)
        Sets the CC recipients.
        Parameters:
        value - the recipients
      • getCC

        public EmailAddress[] getCC()
        Returns the CC recipients.
        Returns:
        the recipients
      • CCTipText

        public String CCTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setBCC

        public void setBCC​(EmailAddress[] value)
        Sets the BCC recipients.
        Parameters:
        value - the recipients
      • getBCC

        public EmailAddress[] getBCC()
        Returns the BCC recipients.
        Returns:
        the recipients
      • BCCTipText

        public String BCCTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSubject

        public void setSubject​(String value)
        Sets the subject.
        Parameters:
        value - the subject
      • getSubject

        public String getSubject()
        Returns the subject.
        Returns:
        the subject
      • subjectTipText

        public String subjectTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSignature

        public void setSignature​(BaseText value)
        Sets the body of the email.
        Parameters:
        value - the body
      • getSignature

        public BaseText getSignature()
        Returns the body of the email.
        Returns:
        the body
      • signatureTipText

        public String signatureTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setSendEmail

        public void setSendEmail​(AbstractSendEmail value)
        Sets the object for sending emails.
        Parameters:
        value - the object
      • getSendEmail

        public AbstractSendEmail getSendEmail()
        Returns the object for sending emails.
        Returns:
        the object
      • sendEmailTipText

        public String sendEmailTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • check

        protected String check​(String msg)
        Hook method before attempting to send the message.
        Overrides:
        check in class AbstractNotification
        Parameters:
        msg - the message to send
        Returns:
        null if successful, otherwise error message
      • initSession

        protected void initSession()
                            throws Exception
        Initializes the SMTP session if required.
        Throws:
        Exception - if initialization fails
      • doSendNotification

        protected String doSendNotification​(String msg)
        Sends the notification.
        Specified by:
        doSendNotification in class AbstractNotification
        Parameters:
        msg - the message to send
        Returns:
        null if successfully sent, otherwise error message