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 231ecce commit 62610e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ export interface MessageCreateOptions {
* The email address to which the email will be sent. Must be a verified email address.
*/
to?: 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]`.
*/
from?: string;
/**
* If true, email will be sent upon creation.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/models/messageCreateOptions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class MessageCreateOptions {
constructor(data = {}) {
this.to = data.to;
this.from = data.from;
this.send = data.send;
this.subject = data.subject;
this.text = data.text;
Expand Down

0 comments on commit 62610e6

Please sign in to comment.