Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 508 Bytes

File metadata and controls

22 lines (16 loc) · 508 Bytes

ElasticEmail::FilePayload

Properties

Name Type Description Notes
binary_content String Content of the file sent as binary data
name String Filename [optional]
content_type String Type of file's content (e.g. image/jpeg) [optional]

Example

require 'ElasticEmail'

instance = ElasticEmail::FilePayload.new(
  binary_content: null,
  name: attachment.txt,
  content_type: null
)