Skip to content

Commit

Permalink
Add 'from' support to MessageCreateOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-mailosaur committed Sep 6, 2022
1 parent d7d1512 commit 2592b53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Mailosaur/models/message_create_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Models
class MessageCreateOptions < BaseModel
def initialize(data = {})
@to = data['to']
@from = data['from']
@send = data['send']
@subject = data['subject']
@text = data['text']
Expand All @@ -14,6 +15,11 @@ def initialize(data = {})
# Must be a verified email address.
attr_accessor :to

# @return [String] Allows for the partial override of the message's
# 'from' address. This **must** be an address ending with
# `YOUR_SERVER.mailosaur.net`, such as `[email protected]`.
attr_accessor :from

# @return [Boolean] If true, email will be sent upon creation.
attr_accessor :send

Expand Down

0 comments on commit 2592b53

Please sign in to comment.