Class Email

java.lang.Object
com.swiftmq.impl.streams.comp.io.Email

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

    • from

      public Email from(String from)
      Sets the from address
      Parameters:
      from - address
      Returns:
      Email
    • to

      public Email to(String to)
      Sets the to address
      Parameters:
      to - address
      Returns:
      Email
    • cc

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

      public Email bcc(String bcc)
      Sets the bcc address
      Parameters:
      bcc - address
      Returns:
      Email
    • replyTo

      public Email replyTo(String replyTo)
      Sets the replyTo address
      Parameters:
      replyTo - address
      Returns:
      Email
    • subject

      public Email subject(String subject)
      Sets the subject
      Parameters:
      subject - subject
      Returns:
      Email
    • body

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

      public Email set(String field, 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 Exception
      Sends the eMail message.
      Throws:
      Exception