mandrill-redirect
v1.0.0
Published
Redirect emails declared in Mandrill template data to a single developer's/QA's email. Useful during development and testing. E.g. Given two recipients [email protected], [email protected] and a redirect email of [email protected] the resulting recipients will be [email protected] and [email protected].
Downloads
3
Readme
mandrill-redirect
Redirect emails declared in Mandrill template data to a single developer's/QA's email. Useful during development and testing.
E.g. Given two recipients [email protected], [email protected] and a redirect email of [email protected] the resulting recipients will be [email protected] and [email protected].
##Use
Install via npm install mandrill-redirect
and use:
rewrites a Mandrill template:
to:
Also:
- to is mandatory and must have length
- merge_vars is optional but if provided must match the length of to
- recipient_metadata is optional but if provided must match the length of to
- If no email is given for redirecting then any template manipulation is skipped.
- The return value is true/false indicating success/failure. The template is rewritten in place.