Annotation Interface MailTemplate


@Retention(RUNTIME) @Target(TYPE) @Repeatable(MailTemplates.class) public @interface MailTemplate
Declares a mail template attached to a document or catalog class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Stable identifier, e.g.
    Subject line.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    When true, body is sent as HTML.
    Optional default reply-to.
    Body template.
  • Element Details

    • name

      String name
      Stable identifier, e.g. "booking-confirmed".
    • subject

      String subject
      Subject line. May contain Thymeleaf expressions referring to doc.
    • template

      String template
      Body template. Resolved by the resource loader. Default convention: classpath:/mail/{name}.html.
      Default:
      ""
    • html

      boolean html
      When true, body is sent as HTML.
      Default:
      true
    • replyTo

      String replyTo
      Optional default reply-to.
      Default:
      ""