diff --git a/src/Models/MessageCreateOptions.php b/src/Models/MessageCreateOptions.php index aa44d0b..aeebfb6 100644 --- a/src/Models/MessageCreateOptions.php +++ b/src/Models/MessageCreateOptions.php @@ -10,6 +10,12 @@ class MessageCreateOptions */ public $to = null; + /** + * @var string Partially overrides of the message's 'from' address. This **must** be an address ending + * with `YOUR_SERVER.mailosaur.net`, such as `my-emails @a1bcdef2.mailosaur.net`. + */ + public $from = null; + /** * @var bool If true, email will be sent upon creation. */ @@ -39,6 +45,7 @@ public function __toArray() { return array( 'to' => $this->to, + 'from' => $this->from, 'send' => $this->send, 'subject' => $this->subject, 'text' => $this->text, @@ -56,4 +63,4 @@ public function toJsonString() { return json_encode($this->__toArray()); } -} \ No newline at end of file +} diff --git a/src/Models/SearchCriteria.php b/src/Models/SearchCriteria.php index a87add5..8270ad5 100644 --- a/src/Models/SearchCriteria.php +++ b/src/Models/SearchCriteria.php @@ -15,6 +15,21 @@ class SearchCriteria */ public $sentTo = null; + /** + * @var string The full email address to which the target email was sent. + */ + public $to = null; + + /** + * @var string The full email address to which the target email was sent. + */ + public $cc = null; + + /** + * @var string The full email address to which the target email was sent. + */ + public $bcc = null; + /** * @var string The value to seek within the target email's subject line. */ @@ -52,4 +67,4 @@ public function toJsonString() { return json_encode($this->__toArray()); } -} \ No newline at end of file +}