Skip to content

MailSlurpClient::WebhookNewEmailPayload

Properties

Name Type Description Notes
message_id String Idempotent message ID. Store this ID locally or in a database to prevent message duplication.
webhook_id String ID of webhook entity being triggered
event_name String Name of the event type webhook is being triggered for.
webhook_name String Name of the webhook being triggered [optional]
inbox_id String Id of the inbox that received an email
email_id String ID of the email that was received. Use this ID for fetching the email with the EmailController.
created_at DateTime Date time of event creation
to Array List of To recipient email addresses that the email was addressed to. See recipients object for names.
from String Who the email was sent from. An email address - see fromName for the sender name.
cc Array List of CC recipients email addresses that the email was addressed to. See recipients object for names.
bcc Array List of BCC recipients email addresses that the email was addressed to. See recipients object for names.
subject String The subject line of the email message as specified by SMTP subject header [optional]
attachment_meta_datas Array List of attachment meta data objects if attachments present

Code Sample

require 'MailSlurpClient'

instance = MailSlurpClient::WebhookNewEmailPayload.new(message_id: null,
                                 webhook_id: null,
                                 event_name: null,
                                 webhook_name: null,
                                 inbox_id: null,
                                 email_id: null,
                                 created_at: null,
                                 to: null,
                                 from: null,
                                 cc: null,
                                 bcc: null,
                                 subject: null,
                                 attachment_meta_datas: null)