Class GroovyMailBuilder

java.lang.Object
de.uplanet.lucy.server.mail.GroovyMailBuilder

@Scriptable public final class GroovyMailBuilder extends Object
  • Constructor Details

    • GroovyMailBuilder

      public GroovyMailBuilder() throws de.uplanet.lucy.mail.SendMailConfigurationException
      Throws:
      de.uplanet.lucy.mail.SendMailConfigurationException
  • Method Details

    • composeMail

      public GroovyMailBuilderWrapper composeMail(groovy.lang.Closure<?> p_closure)
      Compose a new mail using a closure.

      The given closure's delegate is set to a GroovyMailBuilderWrapper.

      Parameters:
      p_closure - The closure that creates the mail.
      Returns:
      The newly composed mail.