Wire up tycka ppe to a mailchimp transactional email (formally known as Mandrill) template.

Installation

First, you need to add the app to your account like this

mutation addApp {
  addApp(appId:"tycka/mailchimp-transactional-email-ppe")
}

After the app has been registered on your account, you need to configure it like this

mutation configureApp {
  configureApp(
    appId: "tycka/mailchimp-transactional-email-ppe"
  	configuration: [
      {
            key: "apiKey",
            value: "*your mailchimp transactional email api key*"
        }, {
            key: "templateSlug",
            value: "*template you want to use*"
        }, {
            key: "senderEmail",
            value: "*your sender email (optional, better to set in template at mailchimp)*"
        }, {
            key: "senderName",
            value: "*your sender name (optional, better to set in template at mailchimp)*"
        }, {
            key: "emailField",
            value: "*email field name (optional)*"
        }
    ]
  )
}

<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" /> emailField is an optional field that can be used if the recipient's email address is not stored in customFields.email on the transaction.

Example

You have stored your recipient's email in a field called customerEmail in under the custom fields on your transaction. Then you would set emailField to "customerEmail".

</aside>

<aside> <img src="/icons/info-alternate_blue.svg" alt="/icons/info-alternate_blue.svg" width="40px" /> templateSlug supports variable substitution, actual values is picked from custom fields on either transaction or item.

Example

If templateSlug is set to "email-collection-{item_type}-{language}". If the transaction has a custom field named language set to sv and the item has a custom field named type set to product. Then the slug "email-collection-product-sv" will be used.

Variables that do not match any values will be replaced with a zero length string. "my-template-{missingValue}" will be "my-template-".

</aside>

With the app added and configured, the only thing left to do is to enable it like this

mutation enableApp {
  enableApp(appId:"tycka/mailchimp-transactional-email-ppe")
}

Dynamic data

After the app is installed, configured, and enabled, PPEs will be sent via mailchimp transactional email to the