Ruby SDK

Send messages on Enveloop by using the Ruby SDK

Install the Enveloop ruby gem

Add enveloop to your Gemfile

gem 'enveloop'

Send Messages

enveloop = Enveloop::Client.new(api_key: "test_eYLQRrzxLcLAlmb2H5BXIFSUor3h/tRr")

enveloop.send_message(
  template: "user-welcome",
  to: "leslie@knope.com",
  from: "Chris Traeger <chris@pawnee.parksandrec.gov>",
  subject: "Welcome to Pawnee",
  template_variables: {
    name: "Leslie Knope"
  }
)

Last updated