Open topic with navigation

# Insert a Message

To insert a message into the repository, use the following properties in your `insertXML`.

Property | Description
--- | ---
`MailboxId` | (Required) The ID of the mailbox to insert the message into.
`To` | (Required) A comma-separated list of e-mail addresses that the message was sent to.
`From` | (Required) The e-mail address that the message was sent from.
`CC` | A comma-separated list of e-mail addresses (CC).
`BCC` | A comma-separated list of e-mail addresses (BCC).
`ToDisplay` | A comma-separated list of display names matching the e-mail addresses provided in the `To` property.
`FromDisplay` | A display name for the e-mail address that the message was sent from.
`CCDisplay` | A comma-separated list of display names matching the e-mail addresses provided in the `CC` property.
`BCCDisplay` | A comma-separated list of display names matching the e-mail addresses provided in the `BCC` property.
`Subject` | The subject of the e-mail.
`DateSent` | The date that the e-mail was sent, in epoch seconds or the format `YYYY-MM-DDTHH:NN:SSZ`.
`DateReceived` | The date that the e-mail was received, in epoch seconds or the format `YYYY-MM-DDTHH:NN:SSZ`.
`Attachments` | A comma-separated list of base64-encoded attachments.
`AttachmentNames` | A comma-separated list of names for the attachments provided in the `Attachments` property.

The `file` element of the `insertXML` should contain the HTML body of the e-mail message.

For example:

    <insertXML>
      <insert>
        <property name="MailboxId" value="User1"/>
        <property name="To" value="User1@microfocus.com"/>
        <property name="From" value="Someone@microfocus.com"/>
        <property name="ToDisplay" value="User1"/>
        <property name="FromDisplay" value="Someone"/>
        <property name="Subject" value="Important"/>
        <property name="DateSent" value="1543488579"/>
        <property name="DateReceived" value="1543488583"/>
        <file>
          <type>file</type>
          <content>email_body.htm</content>
        </file>
      </insert>
    </insertXML>

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm