Ruby Documentation

Send and receive emails in Ruby. Create test email accounts on demand.

MailSlurpClient::Email

Properties

Name Type Description Notes
analysis EmailAnalysis [optional]
attachments Array<String> List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension. [optional]
bcc Array<String> List of `BCC` recipients email was addressed to [optional]
body String The body of the email message [optional]
cc Array<String> List of `CC` recipients email was addressed to [optional]
charset String Detected character set of the email body such as UTF-8 [optional]
created_at DateTime When was the email received by MailSlurp [optional]
from String Who was the email sent from [optional]
headers Hash<String, String> [optional]
id String ID of the email [optional]
inbox_id String ID of the inbox that received the email [optional]
is_html Boolean Was HTML sent in the email body [optional]
read Boolean Has the email been viewed ever [optional]
subject String The subject line of the email message [optional]
to Array<String> List of `To` recipients email was addressed to [optional]
updated_at DateTime When was the email last updated [optional]
user_id String ID of user that email belongs [optional]

Code Sample

require 'MailSlurpClient'

instance = MailSlurpClient::Email.new(analysis: null,
                                 attachments: null,
                                 bcc: null,
                                 body: null,
                                 cc: null,
                                 charset: null,
                                 created_at: null,
                                 from: null,
                                 headers: null,
                                 id: null,
                                 inbox_id: null,
                                 is_html: null,
                                 read: null,
                                 subject: null,
                                 to: null,
                                 updated_at: null,
                                 user_id: null)