You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
def email(bypass_opt_in_level: nil, html_body: nil, message_type: required('message_type'),
plaintext_body: required('plaintext_body'), reply_to: required('reply_to'),
sender_address: required('sender_address'), sender_name: required('sender_name'),
subject: required('subject'))
fail ArgumentError, 'Message type must not be nil' if message_type.nil?
fail ArgumentError, 'Plaintext Body must not be nil' if plaintext_body.nil?
fail ArgumentError, 'Reply To must not be nil' if reply_to.nil?
fail ArgumentError, 'Sender address must not be nil' if sender_address.nil?
fail ArgumentError, 'Sender name must not be nil' if sender_name.nil?
fail ArgumentError, 'Subject must not be nil' if subject.nil?
compact_helper({
bypass_opt_in_level: bypass_opt_in_level,
html_body: html_body,
message_type: message_type,
plaintext_body: plaintext_body,
reply_to: reply_to,
sender_address: sender_address,
sender_name: sender_name,
subject: subject
})
end
The text was updated successfully, but these errors were encountered:
There are some areas of email that aren't currently supported by the Ruby library, and it's possible we haven't gotten to this yet.
We do have an email notification class which does allow you to add a template ID, though its usage as far as the docs are concerned are mainly for create and send. I personally haven't tested it for anything else, but we do have plans to upgrade multiple areas of the Ruby library which likely includes email. When we get to that point we'll make sure this use case is supported.
I am not seeing anywhere to send a push targeting an email template. From the docs I can see it should be something like this:
In email payload I just see this:
The text was updated successfully, but these errors were encountered: