# MessageTemplateContentType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Specifies the content of the message used with a transport mechanism, for instance mail.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
subjectExpression | property ExpressionType | [0,1] | How to construct the subject of the message that is to be sent.
bodyExpression | property ExpressionType | [0,1] | How to construct the body (text) of the message that is to be sent.
contentType | property string | [0,1] | Body content type, e.
attachment | container NotificationMessageAttachmentType | [0,-1] | Message attachment(s) to be sent out.
attachmentExpression | property ExpressionType | [0,1] | An expression that returns message attachment(s) to be sent out.

- ### Items

  - #### subjectExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to construct the subject of the message that is to be sent.

  - #### bodyExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to construct the body (text) of the message that is to be sent.

  - #### contentType

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Body content type, e.g. text/plain (the default), text/html, and so on.

  - #### attachment

    Flags: RAM,runtime

    Multiplicity: [0,-1]

    Display order:

    Message attachment(s) to be sent out. Can be combined with `attachmentExpression`.

  - #### attachmentExpression

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    An expression that returns message attachment(s) to be sent out. Returned objects should be of type NotificationMessageAttachmentType.