Feedback Actions
Update From Email Feedback Action
A feedback action called by the email system when an email is sent to a stub
Overview
When an email is received by the Stubber Platform the stubsession is derived to intelligently route the email to the correct stub.
Then the _update_from_email
feedback action is triggered on the stub.
The _update_from_email
feedback action is used to then further automate anything in the stub that needs to be done when an email is received.
The message body of the email will be set to the message of the stubpost. i.e. stubpost.message
.
If a contact can be derived from the email address of the sender, the posted_by => on_behalf_of will be set to the contact.
All the details of the email will be available in the stubpost.data._email_in
data path.
Data Structure
Feedback Action Data
Example data that is passed to the _update_from_email
feedback action:
JSONSchema
The JSONSchema of the stubpost.data._email_in is :