Skip to content

Commit 4cc4814

Browse files
committed
Merge pull request #82 from SparkPost/ISSUE-78
Update docs and example to show various from_email formats
2 parents 0d935e8 + 2c05450 commit 4cc4814

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/transmissions/send_transmission.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
html='<p>Hello {{name}}</p>',
2424
text='Hello {{name}}',
25-
from_email='[email protected]',
25+
from_email='Test User <[email protected]>',
2626
subject='Example Script',
2727
description='contrived example',
2828
custom_headers={

sparkpost/transmissions.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,11 @@ def send(self, **kwargs):
135135
:param str html: HTML part of transmission
136136
:param str text: Text part of transmission
137137
:param str subject: Subject of transmission
138-
:param str from_email: Friendly from of transmission, domain must be a
139-
verified sending domain to your account or transmission will fail
138+
:param str from_email: Email that the transmission comes from. The
139+
domain must be a verified sending domain to your account or
140+
the transmission will fail. You can pass a from email or both
141+
from name and from email - `[email protected]` or
142+
`Test Email <[email protected]>` will both work.
140143
:param str reply_to: Reply to of transmission
141144
:param str description: Description of transmission
142145
:param str campaign: Campaign of transmission

0 commit comments

Comments
 (0)