Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 855 Bytes

File metadata and controls

32 lines (26 loc) · 855 Bytes

SendX::XEmailMessage

Properties

Name Type Description Notes
from XFrom
to Array<XTo>
reply_to XReplyTo [optional]
subject String
html_body String
text_body String [optional]
headers Hash<String, String> [optional]
template String Template identifier [optional]

Example

require 'sendx-ruby-sdk'

instance = SendX::XEmailMessage.new(
  from: null,
  to: null,
  reply_to: null,
  subject: Your Subject Here,
  html_body: &lt;h1&gt;Your HTML Content&lt;/h1&gt;,
  text_body: Your Text Content,
  headers: {X-Custom-Header&#x3D;Value},
  template: template_f3lJvTEhSjKGVb5Lwc5SWS
)