Front.compose(options)
Open a new message. Will do nothing if an inbox cannot be selected. For example, if you try to compose to a Twitter handle, but have no Twitter inbox.
options: object
Field Name | Type | Description |
---|---|---|
from (optional) | String | The address of the channel that will be used to compose this message. |
to (optional) | String array | An array of recipients, that can be an email address, a phone number, or a Twitter handle. |
cc (optional) | String array | An array of recipients, that can be an email address, a phone number, or a Twitter handle. |
bcc (optional) | String array | An array of strings that represent recipients, that can be an email address, a phone number or a Twitter handle. |
subject (optional) | String | The subject for emails. |
body (optional) | String | The content of your message. If you have any, a signature will be appended. |
attachment_uids (optional) | Integer array | An array of attachment UIDs to attach to the new draft. UIDs can be found in the messages of the current selected conversation (UIDs not found in the conversation will be ignored). |
hide_composer (optional) | Boolean | Whether or not to hide the composer for the new draft message (default to false ). |
Front.compose({
from: '[email protected]',
to: ['[email protected]'],
cc: ['[email protected]'],
subject: 'Optional subject',
body: 'Optional body',
attachment_uids: [],
hide_composer: false
});