Skip to content

Commit

Permalink
Update templates.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Z33DD authored and Stranger6667 committed Nov 25, 2023
1 parent c571701 commit 0b0a89b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ The Templates API is available via the ``templates`` manager:
>>> postmark.templates.all()
[<Template: Test1 (983381)>, <Template: TestX (1003801)>]
To send an email based on the template, use send_with_template:

.. code-block:: python
postmark.emails.send_with_template(
TemplateId=123456,
TemplateModel={
"foo": "bar"
},
From="[email protected]",
To="[email protected]",
)
Template validation:

.. code-block:: python
Expand Down

0 comments on commit 0b0a89b

Please sign in to comment.