Merge pull request #36 from rodbegbie/master

Documentation fix: merge_vars
This commit is contained in:
Mike Edmunds
2013-04-28 12:11:05 -07:00

View File

@@ -174,13 +174,13 @@ Most of the options from the Mandrill
message.global_merge_vars = {'company': "ACME", 'offer': "10% off"} message.global_merge_vars = {'company': "ACME", 'offer': "10% off"}
.. attribute:: recipient_merge_vars .. attribute:: merge_vars
``dict``: per-recipient merge variables (most useful with :ref:`mandrill-templates`). The keys ``dict``: per-recipient merge variables (most useful with :ref:`mandrill-templates`). The keys
in the dict are the recipient email addresses, and the values are dicts of merge vars for in the dict are the recipient email addresses, and the values are dicts of merge vars for
each recipient:: each recipient::
message.recipient_merge_vars = { message.merge_vars = {
'wiley@example.com': {'offer': "15% off anvils"}, 'wiley@example.com': {'offer': "15% off anvils"},
'rr@example.com': {'offer': "instant tunnel paint"} 'rr@example.com': {'offer': "instant tunnel paint"}
} }
@@ -217,7 +217,7 @@ Most of the options from the Mandrill
``dict``: per-recipient metadata values. Keys are the recipient email addresses, ``dict``: per-recipient metadata values. Keys are the recipient email addresses,
and values are dicts of metadata for each recipient (similar to and values are dicts of metadata for each recipient (similar to
:attr:`recipient_merge_vars`) :attr:`merge_vars`)
These Mandrill-specific properties work with *any* These Mandrill-specific properties work with *any*