Sha256: 1915c43cd4a6dd0462a6ee1cf08b2183988867ac1acb774759677d67a6c8274e
Contents?: true
Size: 575 Bytes
Versions: 35
Compression:
Stored size: 575 Bytes
Contents
module Roqua module CoreApi # @api private class SendEmailTo < ActiveInteraction::Base string :person_id hash :attributes do string :subject string :body string :bcc, default: nil string :content_type, default: 'text/html' string :mail_type, default: nil end # Possible variables in the body are: # %firstname%, # %lastname%, # %initials% def execute CoreApi.basic_auth_session.post "/emails", email: attributes, person_id: person_id end end end end
Version data entries
35 entries across 35 versions & 1 rubygems