Skip to content

Custom template for mass email unsubscribe page

  1. Create a file custom/Espo/Custom/Resources/metadata/clientDefs/Campaign.json

json { "unsubscribeTemplate": "custom:campaign/unsubscribe" }

  1. Create a file client/custom/res/templates/campaign/unsubscribe.tpl

```html

Custom text

{{translate 'unsubscribed' category='messages' scope='Campaign'}}

{{translate 'Subscribe again' scope='Campaign'}}

```

Original content can be copied from the file client/modules/crm/res/templates/campaign/unsubscribe.tpl.

The same logic is available for Subscribe Again template. Use subscribeTemplate parameter to define a custom template.