compose¶
This message composition window API first appeared in Thunderbird 67 (see bug 1503423).
Functions¶
beginNew([details])¶
- [
details
] (ComposeParams)
beginReply(messageId, [replyType])¶
messageId
(integer) The message to reply to, as retrieved using other APIs.- [
replyType
] (string)
Values for replyType:
replyToSender
replyToList
replyToAll
beginForward(messageId, [forwardType], [details])¶
messageId
(integer) The message to forward, as retrieved using other APIs.- [
forwardType
] (string) - [
details
] (ComposeParams)
Values for forwardType:
forwardInline
forwardAsAttachment
Types¶
ComposeParams¶
object
- [
bcc
] (array of ComposeRecipient) - [
body
] (string) - [
cc
] (array of ComposeRecipient) - [
replyTo
] (string) - [
subject
] (string) - [
to
] (array of ComposeRecipient)
ComposeRecipient¶
string: A name and email address in the format “Name <email@example.com>”, or just an email address.
OR
object:
id
(string) The ID of a contact or mailing list from the contacts and mailingLists APIs.type
(string) Which sort of object this ID is for.
Values for type:
contact
mailingList