You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/transmissions.rst
+34-7Lines changed: 34 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Here at SparkPost, our messages are known as transmissions. Let's use the underl
9
9
10
10
sp = SparkPost()
11
11
12
-
response = sp.transmission.send(
12
+
response = sp.transmissions.send(
13
13
recipients=['someone@somedomain.com'],
14
14
html='<p>Hello world</p>',
15
15
from_email='test@sparkpostbox.com',
@@ -43,7 +43,7 @@ Using inline templates and/or recipients
43
43
44
44
sp = SparkPost()
45
45
46
-
sp.transmission.send(
46
+
sp.transmissions.send(
47
47
recipients=['someone@somedomain.com'],
48
48
text="Hello world",
49
49
html='<p>Hello world</p>',
@@ -63,7 +63,7 @@ Sending an attachment
63
63
64
64
sp = SparkPost()
65
65
66
-
sp.transmission.send(
66
+
sp.transmissions.send(
67
67
recipients=['someone@somedomain.com'],
68
68
text="Hello world",
69
69
html='<p>Hello world</p>',
@@ -81,6 +81,33 @@ Sending an attachment
81
81
)
82
82
83
83
84
+
Using substitution data
85
+
***********************
86
+
87
+
.. note::
88
+
89
+
Substitution data can be specified at the template, transmission and recipient levels. The order of precedence is as follows: recipient overrides transmission overrides template.
0 commit comments