Search code examples
emailmandrillmergefield

Can I use a merge field in the "From Address" field of a Mandrill template?


I want to create Mandrill template that should use different "From Address"'es depending on dynamic data.

Can I use a merge field for this? If not, how should I create a template with a dynamic "From Address".


Solution

  • According to their documentation, it's not possible to use a merge var in the From Address field for a template.

    You'll probably want to handle that logic on your end (i.e. generate the from address dynamically based on whatever criteria you're using) and then pass that address to Mandrill in your API request or SMTP message.