-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sentFrom to MessageCreateOptions ctor
- Loading branch information
1 parent
eda28a3
commit bc01d56
Showing
2 changed files
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,6 @@ class MessageCreateOptions(object): | |
:param to: The email address to which the email will be sent. Must be a verified email address. | ||
:type to: str | ||
:param sendFrom: 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]`. | ||
:type sendFrom: str | ||
:param send: If true, email will be sent upon creation. | ||
:type send: bool | ||
:param subject: The email subject line. | ||
|
@@ -19,16 +16,19 @@ class MessageCreateOptions(object): | |
:type html: str | ||
:param attachments: Any message attachments. | ||
:type attachments: list[~mailosaur.models.Attachment] | ||
:param sendFrom: 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]`. | ||
:type sendFrom: str | ||
""" | ||
|
||
def __init__(self, to, send, subject, text=None, html=None, attachments=None): | ||
def __init__(self, to, send, subject, text=None, html=None, attachments=None, sendFrom=None): | ||
self.to = to | ||
self.sendFrom = None | ||
self.send = send | ||
self.subject = subject | ||
self.text = text | ||
self.html = html | ||
self.attachments = attachments | ||
self.sendFrom = sendFrom | ||
|
||
def to_json(self): | ||
attachments = [] | ||
|