Class Email


  • public class Email
    extends java.lang.Object
    Facade to send an eMail.
    Author:
    IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Email bcc​(java.lang.String bcc)
      Sets the bcc address
      Email body​(java.lang.String body)
      Sets the mail body.
      Email cc​(java.lang.String cc)
      Sets the jms.cc address
      Email from​(java.lang.String from)
      Sets the from address
      Email replyTo​(java.lang.String replyTo)
      Sets the replyTo address
      void send()
      Sends the eMail message.
      Email set​(java.lang.String field, java.lang.String value)
      Sets fields according to its name: from, to, cc, bcc, subject, body
      Email subject​(java.lang.String subject)
      Sets the subject
      Email to​(java.lang.String to)
      Sets the to address
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • from

        public Email from​(java.lang.String from)
        Sets the from address
        Parameters:
        from - address
        Returns:
        Email
      • to

        public Email to​(java.lang.String to)
        Sets the to address
        Parameters:
        to - address
        Returns:
        Email
      • cc

        public Email cc​(java.lang.String cc)
        Sets the jms.cc address
        Parameters:
        cc - address
        Returns:
        Email
      • bcc

        public Email bcc​(java.lang.String bcc)
        Sets the bcc address
        Parameters:
        bcc - address
        Returns:
        Email
      • replyTo

        public Email replyTo​(java.lang.String replyTo)
        Sets the replyTo address
        Parameters:
        replyTo - address
        Returns:
        Email
      • subject

        public Email subject​(java.lang.String subject)
        Sets the subject
        Parameters:
        subject - subject
        Returns:
        Email
      • body

        public Email body​(java.lang.String body)
        Sets the mail body.
        Parameters:
        body - mail body
        Returns:
        Email
      • set

        public Email set​(java.lang.String field,
                         java.lang.String value)
        Sets fields according to its name: from, to, cc, bcc, subject, body
        Parameters:
        field - field name
        value - field value
        Returns:
        this
      • send

        public void send()
                  throws java.lang.Exception
        Sends the eMail message.
        Throws:
        java.lang.Exception