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
For this example, we assume you have created a [dynamic transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/how_to_send_an_email_with_transactional_templates.html). Following is the template content we used for testing.
4
+
5
+
Template ID (replace with your own):
6
+
7
+
```text
8
+
d-5b08559ac97289da39defbb521bc62da
9
+
```
10
+
11
+
Email Subject:
12
+
13
+
```text
14
+
{{subject}}
15
+
```
16
+
17
+
Template Body:
18
+
19
+
```html
20
+
<html>
21
+
<head>
22
+
<title></title>
23
+
</head>
24
+
<body>
25
+
Hello {{name}},
26
+
<br /><br/>
27
+
I'm glad you are trying out the template feature!
28
+
{{#if city}}
29
+
<br /><br/>
30
+
I hope you are having a great day in {{city.name}}, {{city.country}} :)
31
+
{{/if}}
32
+
<br /><br/>
33
+
</body>
34
+
</html>
35
+
```
36
+
37
+
## With Mail Helper Class
38
+
39
+
```python
40
+
import sendgrid
41
+
import os
42
+
from sendgrid.helpers.mail import Email, DynamicData, Mail, Personalization
Copy file name to clipboardExpand all lines: use_cases/legacy_transational_templates.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Transactional Templates
2
2
3
-
For this example, we assume you have created a [transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing.
3
+
For this example, we assume you have created a [legacy transactional template](https://sendgrid.com/docs/User_Guide/Transactional_Templates/index.html). Following is the template content we used for testing.
0 commit comments