extensionAutoRunEventsArray.events.options object

Configures the behavior and handling options for automatic event responses in Outlook Add-ins. These options determine how events like OnMessageSend are processed, including settings such as sendMode (which controls whether to block, prompt, or allow message sending) and other event-specific configurations.

Properties that reference this object type:

Syntax

{
  "sendMode": "promptUser | softBlock | block",
  "headerName": "{string}"
}
{
  "sendMode": "promptUser | softBlock | block | ",
  "headerName": "{string}"
}
{
  "sendMode": "promptUser | softBlock | block"
}

Properties

sendMode

Specifies the actions to take during a mail send action. For more information, see available send mode options.

Type
string

Required

Constraints

Supported values
Allowed values: promptUser, softBlock, block.

sendMode

Specifies the actions to take during a mail send action. For more information, see available send mode options.

Type
string

Required

Constraints

Supported values
Allowed values: promptUser, softBlock, block, ``.

sendMode

Specifies the actions to take during a mail send action. For more information, see available send mode options.

Type
string

Required

Constraints

Supported values
Allowed values: promptUser, softBlock, block.

headerName

Specifies the internet header name used to identify a message during a decryption event. Follows email header name constraints. For more information, see Create an encryption Outlook add-in.

Type
string

Required

Constraints

Supported values

headerName

Specifies the internet header name used to identify a message during a decryption event. Follows email header name constraints.

Type
string

Required

Constraints

Supported values
The string must match the following regular expression: ^[A-Za-z0-9][A-Za-z0-9-]*$.

Examples

{
  "options": {
    "sendMode": "promptUser"
  }
}