These docs are for v0.1.0. Click to read the latest docs for v1.0.0.

Front.reply(options, replyAll)

Send a reply to the latest message of the current conversation. Will do nothing unless a conversation is selected.

options: object

Field NameTypeDescription
to (optional)String arrayAn array of recipients, that can be an email address, a phone number, or a Twitter handle.
cc (optional)String arrayAn array or recipients, that can be an email address. See
bcc (optional)String arrayAn array of recipients, that can be an email address.
body (optional)StringThe content of your message. If you have any, a signature will be appended.
subject (optional)StringUsed as subject for emails. If omitted, it will reply with the previous subject prefixed by Re: .
attachment_uids (optional)Int arrayAn array of attachment UIDs to attach to the new draft. UIDs can be found in the messages of the current select conversation (UIDs not found in the conversation will be ignored).

replyAll: boolean

Transform a simple reply to a reply all if set to true.

Front.reply({
    to: ['[email protected]'],
    subject: 'Optional subject',
    body: 'Optional body',
    attachment_uids: []
}, replyAll);