Class CmsMessageInfo

java.lang.Object
org.opencms.workplace.tools.workplace.broadcast.CmsMessageInfo

public class CmsMessageInfo extends Object
Bean class for message information.

Since:
6.0.0
  • Constructor Details

  • Method Details

    • getCc

      public String getCc()
      Returns the cc string.

      Returns:
      the cc string
    • getFrom

      public String getFrom()
      Returns the from string.

      Returns:
      the from string
    • getMsg

      public String getMsg()
      Returns the message string.

      Returns:
      the message string
    • getSubject

      public String getSubject()
      Returns the subject string.

      Returns:
      the subject string
    • getTo

      public String getTo()
      Returns the to string.

      Returns:
      the to string
    • sendEmail

      public void sendEmail(org.opencms.file.CmsObject cms) throws Exception
      Sends the given message to the given addresses.

      Parameters:
      cms - the cms context
      Throws:
      Exception - if something goes wrong
    • setCc

      public void setCc(String cc)
      Sets the cc string.

      Parameters:
      cc - the cc string
    • setFrom

      public void setFrom(String from)
      Sets the from string.

      Parameters:
      from - the from string
    • setMsg

      public void setMsg(String msg)
      Sets the message string.

      Parameters:
      msg - the message string
    • setSubject

      public void setSubject(String subject)
      Sets the subject string.

      Parameters:
      subject - the subject string
    • setTo

      public void setTo(String to)
      Sets the to string.

      This has to be a ';' separated string of email-addresses.

      Parameters:
      to - the to string