diff --git a/README.rst b/README.rst index e79b97e..fbb7d27 100644 --- a/README.rst +++ b/README.rst @@ -23,7 +23,7 @@ send message and get response from smtp server: and more: * DKIM signature -* Render body from template +* Render email subject and body using Jinja templates * Flask extension and Django integration * Message body transformation methods * Load message from url or from file diff --git a/docs/examples.rst b/docs/examples.rst index d50e7d2..5c304ce 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -45,6 +45,7 @@ Use templates: message.send(to=('John Brown', 'jbrown@gmail.com'), render={'name': 'John Brown', 'billno': '141051906163'}) +The :code:`JinjaTemplate` constructor expects a unicode string as the first argument. Therefore templates stored in external files can be added using :code:`T(open('template.html').read())`. Add DKIM signature: