Creates and Sends an Email message.
-
Emails will be sent using the channel that corresponds to the
fromrequest parameter. Thefromvalue can be either the channel'semail adrressor the channel'sID. -
Plain Text and HTML bodies are accepted (as long as they're in string format).
-
Attachment-only emails are also accepted.
-
If there is no contact corresponding to the
toparameter for the organization, a new contact will be created, along with a conversation with thefromemail channel. If there is an existing contact but no conversation, a new conversation will be created. -
The
opt_in_to_all_channelsandopt_in_toparams are optional and they will be processed in the cases where a new contact is created. These params reflect which of the organization channels the contact will be opted in to.
Note: The Messaging API is designed for creating and managing emails and can only process POST requests. To view emails, navigate to the Conversation section where you can use the Show Conversation API to GET emails within a specific conversation.
